Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 13, 2020
1 parent b4db8dc commit d00c29a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions src/chat_command_handler.cpp
Expand Up @@ -11,13 +11,14 @@
See the COPYING file for more details.
*/

#include "gui/dialogs/preferences_dialog.hpp"
#include "map_command_handler.hpp"
#include "chat_command_handler.hpp"

#include "chat_events.hpp"
#include "preferences/game.hpp"
#include "game_version.hpp"
#include "gui/dialogs/preferences_dialog.hpp"
#include "map_command_handler.hpp"
#include "preferences/display.hpp"
#include "game_config_manager.hpp"
#include "preferences/game.hpp"

namespace events {

Expand All @@ -31,7 +32,6 @@ void chat_command_handler::print(const std::string& title, const std::string& me
chat_handler_.add_chat_message(std::time(nullptr), title, 0, message);
}


void chat_command_handler::do_emote()
{
chat_handler_.send_chat_message("/me " + get_data(), allies_only_);
Expand Down
4 changes: 2 additions & 2 deletions src/preferences/advanced.cpp
Expand Up @@ -35,7 +35,7 @@ advanced_manager::advanced_manager(const game_config_view& gc)
try {
prefs.emplace_back(pref);
} catch(const std::invalid_argument& e) {
std::cerr << e.what() << std::endl;
ERR_ADV << e.what() << std::endl;
continue;
}
}
Expand Down Expand Up @@ -77,4 +77,4 @@ const advanced_pref_list& get_advanced_preferences()
return singleton->get_preferences();
}

} // namespace preferences
} // namespace preferences
2 changes: 1 addition & 1 deletion src/preferences/advanced.hpp
Expand Up @@ -67,4 +67,4 @@ using advanced_pref_list = std::vector<advanced_manager::option>;
/** Gets a list of the available advanced preferences. */
const advanced_pref_list& get_advanced_preferences();

} // namespace preferences
} // namespace preferences

0 comments on commit d00c29a

Please sign in to comment.