Author: mordante
Date: Sat Sep 20 09:53:39 2008
New Revision: 29566
URL: http://svn.gna.org/viewcvs/wesnoth?rev=29566&view=rev
Log:
Rename DUMMY to a more descriptive name COUNT.
Modified:
trunk/src/gui/widgets/settings.cpp
trunk/src/gui/widgets/settings.hpp
Modified: trunk/src/gui/widgets/settings.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/settings.cpp?rev=29566&r1=29565&r2=29566&view=diff
==============================================================================
--- trunk/src/gui/widgets/settings.cpp (original)
+++ trunk/src/gui/widgets/settings.cpp Sat Sep 20 09:53:39 2008
@@ -82,7 +82,7 @@
* Vector with all known windows, these are validated on existance on
startup.
* The enum twindow_type is the index of the array.
*/
- std::vector<std::string> window_type_list(DUMMY);
+ std::vector<std::string> window_type_list(COUNT);
} // namespace
static void fill_window_types()
@@ -104,7 +104,7 @@
const std::string& get_id(const twindow_type window_type)
{
- assert(window_type >= 0 && window_type < DUMMY);
+ assert(window_type >= 0 && window_type < COUNT);
return window_type_list[window_type];
}
Modified: trunk/src/gui/widgets/settings.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/settings.hpp?rev=29566&r1=29565&r2=29566&view=diff
==============================================================================
--- trunk/src/gui/widgets/settings.hpp (original)
+++ trunk/src/gui/widgets/settings.hpp Sat Sep 20 09:53:39 2008
@@ -52,7 +52,10 @@
EDITOR_RESIZE_MAP, /**< Editor resize map dialog. */
EDITOR_SETTINGS, /**< Editor settings dialog. */
#endif
- DUMMY /**< Dummy always the last one. */
+ COUNT /**<
+ * The last one to
hold the number of items and as
+ * sentinel.
+ */
};
const std::string& get_id(const twindow_type window_type);
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits