mail[Wesnoth-commits] r28355 - /trunk/src/editor2/editor_controller.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by paniemin on August 07, 2008 - 07:43:
Author: suokko
Date: Wed Aug  6 20:37:58 2008
New Revision: 28355

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28355&view=rev
Log:
Fixed warning: control reaches end of non-void function

Modified:
    trunk/src/editor2/editor_controller.cpp

Modified: trunk/src/editor2/editor_controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_controller.cpp?rev=28355&r1=28354&r2=28355&view=diff
==============================================================================
--- trunk/src/editor2/editor_controller.cpp (original)
+++ trunk/src/editor2/editor_controller.cpp Wed Aug  6 20:37:58 2008
@@ -478,17 +478,16 @@
                case HOTKEY_EDITOR_UPDATE_TRANSITIONS:
                        refresh_all();
                        return true;
-                       break;
                case HOTKEY_EDITOR_REFRESH:
                        reload_map();
                        return true;
-                       break;
                case HOTKEY_EDITOR_REFRESH_IMAGE_CACHE:
                        refresh_image_cache();
                        return true;
                default:
                        return controller_base::execute_command(command, 
index);
        }
+       return false;
 }
 
 void 
editor_controller::expand_starting_position_menu(std::vector<std::string>& 
items)




Related Messages


Powered by MHonArc, Updated Thu Aug 07 09:00:50 2008