summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-30 20:04:25 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-10-30 20:04:25 +0100
commit4aa0e3085afec924a1bb4e6336d7d7b2ade05218 (patch)
treeb61da2d5ff05d1e40ca30ec98248cc3edba0e46d /editor
parent7453d878cc1d7549d908414aefd31fb1ac360ccb (diff)
add noexcept
Diffstat (limited to 'editor')
-rw-r--r--editor/editor.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/editor/editor.hpp b/editor/editor.hpp
index 2fc78892..2d215a42 100644
--- a/editor/editor.hpp
+++ b/editor/editor.hpp
@@ -47,13 +47,13 @@ public:
tile_editor(editor_mode mode, StringView name);
std::shared_ptr<tile_atlas> maybe_atlas(StringView str);
std::shared_ptr<tile_atlas> atlas(StringView str);
- auto cbegin() const { return _atlases.cbegin(); }
- auto cend() const { return _atlases.cend(); }
- auto begin() const { return _atlases.cbegin(); }
- auto end() const { return _atlases.cend(); }
- StringView name() const { return _name; }
- editor_mode mode() const { return _mode; }
- editor_wall_rotation rotation() const { return _rotation; }
+ auto cbegin() const noexcept { return _atlases.cbegin(); }
+ auto cend() const noexcept { return _atlases.cend(); }
+ auto begin() const noexcept { return _atlases.cbegin(); }
+ auto end() const noexcept { return _atlases.cend(); }
+ StringView name() const noexcept { return _name; }
+ editor_mode mode() const noexcept { return _mode; }
+ editor_wall_rotation rotation() const noexcept { return _rotation; }
void clear_selection();
void select_tile(const std::shared_ptr<tile_atlas>& atlas, std::size_t variant);
@@ -69,13 +69,13 @@ public:
struct editor final
{
- [[nodiscard]] bool dirty() const { return _dirty; }
- void set_dirty(bool value) { _dirty = value; }
- [[nodiscard]] editor_mode mode() const { return _mode; }
+ [[nodiscard]] bool dirty() const noexcept { return _dirty; }
+ void set_dirty(bool value) noexcept { _dirty = value; }
+ [[nodiscard]] editor_mode mode() const noexcept { return _mode; }
void set_mode(editor_mode mode);
- tile_editor& floor() { return _floor; }
- const tile_editor& floor() const { return _floor; }
+ tile_editor& floor() noexcept { return _floor; }
+ const tile_editor& floor() const noexcept { return _floor; }
tile_editor* current();
const tile_editor* current() const;