]> git.saurik.com Git - wxWidgets.git/commitdiff
final part of SF patch #904166 (DMC fix)
authorChris Elliott <biol75@york.ac.uk>
Wed, 3 Mar 2004 10:46:59 +0000 (10:46 +0000)
committerChris Elliott <biol75@york.ac.uk>
Wed, 3 Mar 2004 10:46:59 +0000 (10:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/utils/convertrc/rc2wxr.cpp
contrib/utils/convertrc/rc2xml.cpp
src/expat/lib/xmlparse.c
src/msw/ole/automtn.cpp

index 44f75d959c71d012baa09b47ebd69f46d438eb7b..13b4b8406a277c1d8834a11cd699d69978cb8b96 100644 (file)
@@ -979,7 +979,8 @@ void rc2wxr::ParseSlider(wxString WXUNUSED(label), wxString varname)
 
 wxString tok;
 
 
 wxString tok;
 
-while (ReadOrs(tok));
+while (ReadOrs(tok))
+    ;
 
 wxFprintf(m_wxr,_T("  control = [%i,wxSlider,'','wxSL_HORIZONTAL','%s',"),m_controlid,varname.c_str());
 
 
 wxFprintf(m_wxr,_T("  control = [%i,wxSlider,'','wxSL_HORIZONTAL','%s',"),m_controlid,varname.c_str());
 
@@ -1009,7 +1010,8 @@ void rc2wxr::ParseProgressBar(wxString WXUNUSED(label), wxString varname)
 
 wxString tok;
 
 
 wxString tok;
 
-while (ReadOrs(tok));
+while (ReadOrs(tok))
+    ;
 
 wxFprintf(m_wxr,_T("  control = [%i,wxGauge,'','wxGA_HORIZONTAL','%s',"),m_controlid,varname.c_str());
 
 
 wxFprintf(m_wxr,_T("  control = [%i,wxGauge,'','wxGA_HORIZONTAL','%s',"),m_controlid,varname.c_str());
 
@@ -1071,7 +1073,8 @@ if (tok==_T("BS_AUTOCHECKBOX"))
 
     wxFprintf(m_wxr,_T("  control = [%i,wxCheckBox,'%s','0','%s',"),m_controlid,label.c_str(),varname.c_str());
 
 
     wxFprintf(m_wxr,_T("  control = [%i,wxCheckBox,'%s','0','%s',"),m_controlid,label.c_str(),varname.c_str());
 
-    while (ReadOrs(tok));
+    while (ReadOrs(tok))
+        ;
 
     ReadRect(x,y,width,height);
 
 
     ReadRect(x,y,width,height);
 
@@ -1089,7 +1092,8 @@ if (tok==_T("BS_AUTORADIOBUTTON"))
 
     wxFprintf(m_wxr,_T("  control = [%i,wxRadioButton,'%s','0','%s',"),m_controlid,label.c_str(),varname.c_str());
 
 
     wxFprintf(m_wxr,_T("  control = [%i,wxRadioButton,'%s','0','%s',"),m_controlid,label.c_str(),varname.c_str());
 
-    while(ReadOrs(tok));
+    while(ReadOrs(tok))
+        ;
 
     ReadRect(x,y,width,height);
 
 
     ReadRect(x,y,width,height);
 
index d4db74abed4f5c3007eee1d6b2e1527e6fdd61a0..371f4aa48972db4988369665cc5656a0b3234df1 100644 (file)
@@ -1077,9 +1077,11 @@ void rc2xml::ParseMenuItem()
         ptoken.MakeUpper();
         if (token==_T("CHECKED"))
             m_xmlfile.Write(_T("\t\t\t<checkable>1</checkable>\n"));
         ptoken.MakeUpper();
         if (token==_T("CHECKED"))
             m_xmlfile.Write(_T("\t\t\t<checkable>1</checkable>\n"));
-        else if (token==_T("MENUBREAK"));
+        else if (token==_T("MENUBREAK"))
+            ;
 //m_xmlfile.Write("\t\t\t</break>\n");
 //m_xmlfile.Write("\t\t\t</break>\n");
-        else if (token==_T("GRAYED"));
+        else if (token==_T("GRAYED"))
+            ;
         else
             wxLogError(_T("Unknown Menu Item token:")+token);
 
         else
             wxLogError(_T("Unknown Menu Item token:")+token);
 
index 09002dbbb94ab9f5918a72d7548d92c868f584ad..c55c768002a535e9353da47e34392ebdb751d9b2 100644 (file)
@@ -4038,7 +4038,8 @@ doProlog(XML_Parser parser,
         name = el->name;
         dtd->scaffold[myindex].name = name;
         nameLen = 0;
         name = el->name;
         dtd->scaffold[myindex].name = name;
         nameLen = 0;
-        for (; name[nameLen++]; );
+        for (; name[nameLen++]; )
+            ;
         dtd->contentStringLen +=  nameLen;
         if (elementDeclHandler)
           handleDefault = XML_FALSE;
         dtd->contentStringLen +=  nameLen;
         if (elementDeclHandler)
           handleDefault = XML_FALSE;
index 6b948f8baa10c68de671672627f3cc72eedcaef5..f80d6d8216e82e79fab9ce60a3c98c714404c8ed 100644 (file)
@@ -1049,7 +1049,8 @@ BOOL TmFromOleDate(DATE dtSrc, struct tm& tmDest)
 
        // Month number always >= n/32, so save some loop time */
        for (tmDest.tm_mon = (n4Day >> 5) + 1;
 
        // Month number always >= n/32, so save some loop time */
        for (tmDest.tm_mon = (n4Day >> 5) + 1;
-               n4Day > rgMonthDays[tmDest.tm_mon]; tmDest.tm_mon++);
+               n4Day > rgMonthDays[tmDest.tm_mon]; tmDest.tm_mon++)
+               ;
 
        tmDest.tm_mday = (int)(n4Day - rgMonthDays[tmDest.tm_mon-1]);
 
 
        tmDest.tm_mday = (int)(n4Day - rgMonthDays[tmDest.tm_mon-1]);