Skip to content

Commit

Permalink
Namespace qualifier is not needed to reference member from within its…
Browse files Browse the repository at this point in the history
… namespace

Clang treats this as an error, for instance
  • Loading branch information
AMDmi3 committed Jul 29, 2015
1 parent be831ec commit 1b2273f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/other/language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ char const* const main_name_of_game_English = "Lix";

// +1 because unlike other vectors, we'll have an element
// here for Language::MAX too
std::vector <std::string> language_name(Language::MAX + 1);
std::vector <std::string> language_name(MAX + 1);

namespace Option {
enum OptionGroupNames {
Expand Down Expand Up @@ -1575,8 +1575,8 @@ bool Language::try_load_custom_language(bool load_language_name_only) {
namespace Language {
class KeyComparer {
public:
inline bool operator()(Language::translate_map_type::const_iterator const& entry1,
Language::translate_map_type::const_iterator const& entry2) {
inline bool operator()(translate_map_type::const_iterator const& entry1,
translate_map_type::const_iterator const& entry2) {
return entry1->first < entry2->first;
}
};
Expand Down

0 comments on commit 1b2273f

Please sign in to comment.