]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stockitem.cpp
SetBackgroundStyle(wxBG_STYLE_CUSTOM) can now be used to optimize
[wxWidgets.git] / src / common / stockitem.cpp
index b065203e8ff042771a81a43ff95f6b4ac03af6d8..c6325d7a2e37ae991093cff74f0fedf6564273a1 100644 (file)
@@ -35,8 +35,7 @@ wxString wxGetStockItemLabel(wxStockItemID item)
 {
     #define STOCKITEM(stockid, label) \
         case stockid:                 \
-            return label;             \
-            break;
+            return label;
 
     switch (item)
     {
@@ -111,13 +110,11 @@ const char *wxStockItemToGTK(wxStockItemID item)
 {
     #define STOCKITEM(stockid)            \
         case wx##stockid:                 \
-            return GTK_##stockid;         \
-            break;
+            return GTK_##stockid;
     
     #define STOCKITEM_MISSING(stockid)    \
         case wx##stockid:                 \
-            return NULL;                  \
-            break;
+            return NULL;
 
     #if GTK_CHECK_VERSION(2,4,0)
         #define STOCKITEM_24(stockid) STOCKITEM(stockid)