Move static variables to another cpp file.
Since the sticky exceptions are slated to be removed, move the statics to a .cpp files named the same as the .hpp where they are declared.
This commit is contained in:
parent
aa76f6fcc3
commit
9d98e25794
5 changed files with 23 additions and 3 deletions
|
@ -79,6 +79,7 @@ src/formula_tokenizer.cpp
|
|||
src/game_config.cpp
|
||||
src/game.cpp
|
||||
src/game_display.cpp
|
||||
src/game_errors.cpp
|
||||
src/game_events.cpp
|
||||
src/gamestatus.cpp
|
||||
src/generic_event.cpp
|
||||
|
|
|
@ -354,6 +354,7 @@ set(wesnoth-main_SRC
|
|||
formula_string_utils.cpp
|
||||
formula_tokenizer.cpp
|
||||
game_display.cpp
|
||||
game_errors.cpp
|
||||
game_events.cpp
|
||||
game_preferences.cpp
|
||||
game_preferences_display.cpp
|
||||
|
|
|
@ -222,6 +222,7 @@ wesnoth_sources = Split("""
|
|||
formula_string_utils.cpp
|
||||
formula_tokenizer.cpp
|
||||
game_display.cpp
|
||||
game_errors.cpp
|
||||
game_events.cpp
|
||||
game_preferences.cpp
|
||||
gamestatus.cpp
|
||||
|
|
|
@ -29,6 +29,3 @@ void game::exception::rethrow()
|
|||
throw game::exception("Unknown exception", "unknown");
|
||||
}
|
||||
|
||||
std::string game::load_game_exception::game;
|
||||
bool game::load_game_exception::show_replay;
|
||||
bool game::load_game_exception::cancel_orders;
|
||||
|
|
20
src/game_errors.cpp
Normal file
20
src/game_errors.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
/* $Id$ */
|
||||
/*
|
||||
Copyright (C) 2011 by mark de wever <koraq@xs4all.nl>
|
||||
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY.
|
||||
|
||||
See the COPYING file for more details.
|
||||
*/
|
||||
|
||||
#include "game_errors.hpp"
|
||||
|
||||
std::string game::load_game_exception::game;
|
||||
bool game::load_game_exception::show_replay;
|
||||
bool game::load_game_exception::cancel_orders;
|
Loading…
Add table
Reference in a new issue