Commented out code that produced warnings

This commit is contained in:
andreja6
2018-10-24 10:38:46 -07:00
parent dc6c002250
commit 77615c5b8f
2 changed files with 5 additions and 2 deletions

View File

@@ -40,9 +40,12 @@ LRESULT CALLBACK PropProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
CHAR ListItem[256]; CHAR ListItem[256];
SendMessage((HWND) lParam, (UINT) CB_GETLBTEXT, (WPARAM) ItemIndex, (LPARAM) ListItem); SendMessage((HWND) lParam, (UINT) CB_GETLBTEXT, (WPARAM) ItemIndex, (LPARAM) ListItem);
MessageBox(hwnd, ListItem, "Item Selected", MB_OK); MessageBox(hwnd, ListItem, "Item Selected", MB_OK);
if(ItemIndex != 0)
{
//SetProperties(children.at(ItemIndex-1)); //SetProperties(children.at(ItemIndex-1));
} }
} }
}
break; break;
case WM_NOTIFY: case WM_NOTIFY:
{ {

View File

@@ -295,7 +295,7 @@ void deleteInstance()
{ {
if(g_selectedInstances.size() > 0) if(g_selectedInstances.size() > 0)
{ {
int undeletable = 0; size_t undeletable = 0;
while(g_selectedInstances.size() > undeletable) while(g_selectedInstances.size() > undeletable)
{ {
if(g_selectedInstances.at(0) != dataModel && g_selectedInstances.at(0) != dataModel->getWorkspace()) if(g_selectedInstances.at(0) != dataModel && g_selectedInstances.at(0) != dataModel->getWorkspace())
@@ -1629,7 +1629,7 @@ int main(int argc, char** argv) {
INITCOMMONCONTROLSEX icc; INITCOMMONCONTROLSEX icc;
WNDCLASSEX wcx; // WNDCLASSEX wcx;
/* Initialize common controls. Also needed for MANIFEST's */ /* Initialize common controls. Also needed for MANIFEST's */