+
+ // and finally the client data, if necessary
+ switch ( GetClientDataType() )
+ {
+ case wxClientData_None:
+ // nothing to do
+ break;
+
+ case wxClientData_Object:
+ {
+ wxClientData * const dataTmp = DetachClientObject(pos1);
+ SetClientObject(pos1, DetachClientObject(pos2));
+ SetClientObject(pos2, dataTmp);
+ }
+ break;
+
+ case wxClientData_Void:
+ {
+ void * const dataTmp = GetClientData(pos1);
+ SetClientData(pos1, GetClientData(pos2));
+ SetClientData(pos2, dataTmp);
+ }
+ break;
+ }