]> git.saurik.com Git - wxWidgets.git/commitdiff
avoid GCC warning "suggest braces around empty body in an ‘else’ statement"
authorPaul Cornett <paulcor@bullseye.com>
Wed, 6 Apr 2011 17:03:31 +0000 (17:03 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Wed, 6 Apr 2011 17:03:31 +0000 (17:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/menu.cpp
src/gtk/notebook.cpp

index 9fa6934e878ea75f7bc7d53821bab7636a99484e..b506d195b6d0f039f9b9268435f84411eda47781 100644 (file)
@@ -601,7 +601,9 @@ void wxMenuItem::SetBitmap(const wxBitmap& bitmap)
     if (m_kind == wxITEM_NORMAL)
         m_bitmap = bitmap;
     else
     if (m_kind == wxITEM_NORMAL)
         m_bitmap = bitmap;
     else
+    {
         wxFAIL_MSG("only normal menu items can have bitmaps");
         wxFAIL_MSG("only normal menu items can have bitmaps");
+    }
 }
 
 void wxMenuItem::Check( bool check )
 }
 
 void wxMenuItem::Check( bool check )
index 3b61cd153e497616bf9c2e7d8a22d57eb64f98f9..f418384a367a0d2f6d3744d8e60e1fb5d64bf32a 100644 (file)
@@ -418,7 +418,9 @@ bool wxNotebook::InsertPage( size_t position,
                 pageData->m_image, false, false, m_padding);
         }
         else
                 pageData->m_image, false, false, m_padding);
         }
         else
+        {
             wxFAIL_MSG("invalid notebook imagelist");
             wxFAIL_MSG("invalid notebook imagelist");
+        }
     }
 
     /* set the label text */
     }
 
     /* set the label text */