From 77615c5b8f5e17c87988168230668fe799a12e81 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Wed, 24 Oct 2018 10:38:46 -0700 Subject: [PATCH] Commented out code that produced warnings --- PropertyWindow.cpp | 3 +++ main.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PropertyWindow.cpp b/PropertyWindow.cpp index 8ba668a..3d9ef2a 100644 --- a/PropertyWindow.cpp +++ b/PropertyWindow.cpp @@ -40,7 +40,10 @@ LRESULT CALLBACK PropProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) CHAR ListItem[256]; SendMessage((HWND) lParam, (UINT) CB_GETLBTEXT, (WPARAM) ItemIndex, (LPARAM) ListItem); MessageBox(hwnd, ListItem, "Item Selected", MB_OK); + if(ItemIndex != 0) + { //SetProperties(children.at(ItemIndex-1)); + } } } break; diff --git a/main.cpp b/main.cpp index 4d06d0e..e90e696 100644 --- a/main.cpp +++ b/main.cpp @@ -295,7 +295,7 @@ void deleteInstance() { if(g_selectedInstances.size() > 0) { - int undeletable = 0; + size_t undeletable = 0; while(g_selectedInstances.size() > undeletable) { if(g_selectedInstances.at(0) != dataModel && g_selectedInstances.at(0) != dataModel->getWorkspace()) @@ -1629,7 +1629,7 @@ int main(int argc, char** argv) { INITCOMMONCONTROLSEX icc; - WNDCLASSEX wcx; +// WNDCLASSEX wcx; /* Initialize common controls. Also needed for MANIFEST's */