diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-02 12:34:39 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-02 15:15:30 +0100 |
commit | 2d39da5405a4527e91e853ddb1e56a539c96c6c1 (patch) | |
tree | 342f5d553c844f05b550510de27d5b7c937daf90 /Games/Minesweeper | |
parent | b7e3810b5c3d7e52217e70eed61132d9f670648d (diff) | |
download | serenity-2d39da5405a4527e91e853ddb1e56a539c96c6c1.zip |
LibCore: Put all classes in the Core namespace and remove the leading C
I've been wanting to do this for a long time. It's time we start being
consistent about how this stuff works.
The new convention is:
- "LibFoo" is a userspace library that provides the "Foo" namespace.
That's it :^) This was pretty tedious to convert and I didn't even
start on LibGUI yet. But it's coming up next.
Diffstat (limited to 'Games/Minesweeper')
-rw-r--r-- | Games/Minesweeper/Field.cpp | 8 | ||||
-rw-r--r-- | Games/Minesweeper/Field.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Games/Minesweeper/Field.cpp b/Games/Minesweeper/Field.cpp index e31a90899c..9e1c1e4147 100644 --- a/Games/Minesweeper/Field.cpp +++ b/Games/Minesweeper/Field.cpp @@ -127,7 +127,7 @@ Field::Field(GLabel& flag_label, GLabel& time_label, GButton& face_button, GWidg , m_on_size_changed(move(on_size_changed)) { srand(time(nullptr)); - m_timer = CTimer::construct(); + m_timer = Core::Timer::construct(); m_timer->on_timeout = [this] { ++m_time_elapsed; m_time_label.set_text(String::format("%u.%u", m_time_elapsed / 10, m_time_elapsed % 10)); @@ -153,7 +153,7 @@ Field::Field(GLabel& flag_label, GLabel& time_label, GButton& face_button, GWidg set_face(Face::Default); { - auto config = CConfigFile::get_for_app("Minesweeper"); + auto config = Core::ConfigFile::get_for_app("Minesweeper"); bool single_chording = config->read_num_entry("Minesweeper", "SingleChording", false); int mine_count = config->read_num_entry("Game", "MineCount", 10); int rows = config->read_num_entry("Game", "Rows", 9); @@ -497,7 +497,7 @@ void Field::set_field_size(int rows, int columns, int mine_count) if (m_rows == rows && m_columns == columns && m_mine_count == mine_count) return; { - auto config = CConfigFile::get_for_app("Minesweeper"); + auto config = Core::ConfigFile::get_for_app("Minesweeper"); config->write_num_entry("Game", "MineCount", mine_count); config->write_num_entry("Game", "Rows", rows); config->write_num_entry("Game", "Columns", columns); @@ -511,7 +511,7 @@ void Field::set_field_size(int rows, int columns, int mine_count) } void Field::set_single_chording(bool enabled) { - auto config = CConfigFile::get_for_app("Minesweeper"); + auto config = Core::ConfigFile::get_for_app("Minesweeper"); m_single_chording = enabled; config->write_bool_entry("Minesweeper", "SingleChording", m_single_chording); } diff --git a/Games/Minesweeper/Field.h b/Games/Minesweeper/Field.h index 4bf5754da7..587bf27e22 100644 --- a/Games/Minesweeper/Field.h +++ b/Games/Minesweeper/Field.h @@ -121,7 +121,7 @@ private: GButton& m_face_button; GLabel& m_flag_label; GLabel& m_time_label; - RefPtr<CTimer> m_timer; + RefPtr<Core::Timer> m_timer; int m_time_elapsed { 0 }; int m_flags_left { 0 }; Face m_face { Face::Default }; |