From 802c17175e595ddb3075465a1febc432262bcc3f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 12 Nov 2022 04:05:21 +0100 Subject: use Corrade's Optional instead of stl --- editor/camera.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor/camera.cpp') diff --git a/editor/camera.cpp b/editor/camera.cpp index bb69c626..35d24ef4 100644 --- a/editor/camera.cpp +++ b/editor/camera.cpp @@ -56,13 +56,13 @@ void app::reset_camera_offset() update_cursor_tile(cursor.pixel); } -void app::update_cursor_tile(const std::optional& pixel) +void app::update_cursor_tile(const Optional& pixel) { cursor.pixel = pixel; if (pixel) cursor.tile = M->pixel_to_tile(Vector2d{*pixel}); else - cursor.tile = std::nullopt; + cursor.tile = NullOpt; } } // namespace floormat -- cgit v1.2.3