]> Creatis software - bbtk.git/commitdiff
Clean Code
authorEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 20 Sep 2022 14:03:14 +0000 (16:03 +0200)
committerEduardo DAVILA <davila@creatis.insa-lyon.fr>
Tue, 20 Sep 2022 14:03:14 +0000 (16:03 +0200)
kernel/src/bbtkWxGUIPackageBrowser2.cxx

index e87ffcbd5f890e574693e1ffddc2af31b4060618..67b46851c3379ac6e5a72c202625152637cff3e8 100644 (file)
@@ -261,7 +261,7 @@ int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData)
          info.m_itemId = event.m_itemIndex;
          info.m_col = 0;
          info.m_mask = wxLIST_MASK_DATA;
-         wxString sendtext(_T(""));
+      wxString sendtext(_T(""));
          if ( GetItem(info) )
          {
                  // TO DO : STORE SMART PTR ?
@@ -272,15 +272,15 @@ int wxCALLBACK MyCompareFunction(long item1, long item2, long WXUNUSED(sortData)
                      sendtext += crea::std2wx("box:");
                      sendtext += crea::std2wx(d->GetFullTypeName());
                      sendtext += _T("<EndEED>");
-              printf("EED WxGUIBlackBoxList::OnBeginDrag <%s>%d  <%s>%d\n",
-                     (const char*)sendtext.mb_str(),sendtext.Len() ,  d->GetFullTypeName().c_str() , d->GetFullTypeName().length() );
+//              printf("EED WxGUIBlackBoxList::OnBeginDrag <%s>%d  <%s>%d\n",  (const char*)sendtext.mb_str(),sendtext.Len() ,  d->GetFullTypeName().c_str() , d->GetFullTypeName().length() );
                  }
-         } else {
+
+      } else {
                  wxFAIL_MSG(wxT("wxListCtrl::GetItem() failed"));
          }
 
          wxTextDataObject tdo(sendtext);
-      printf("EED WxGUIBlackBoxList::OnBeginDrag <%s>\n",(const char*) tdo.GetText().mb_str() );
+//      printf("EED WxGUIBlackBoxList::OnBeginDrag <%s>\n",(const char*) tdo.GetText().mb_str() );
 
          wxDropSource tds(tdo, this);
          tds.DoDragDrop( );