diff options
| author | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:54:38 +0100 |
|---|---|---|
| committer | Hannes Schulze <haschu0103@outlook.de> | 2025-02-06 19:54:38 +0100 |
| commit | 64ebfde8bcd6408e3b6925624e8680c314db6efc (patch) | |
| tree | b969314f909f7f16ef5acc63f90dca317a40850a /lib/nes/app/action.hh | |
| parent | d060e3a50c987d10799ccc739bdbf9d7d7a13c10 (diff) | |
get rid of nasty stdlib
Diffstat (limited to 'lib/nes/app/action.hh')
| -rw-r--r-- | lib/nes/app/action.hh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/nes/app/action.hh b/lib/nes/app/action.hh index cca7a35..ed879f3 100644 --- a/lib/nes/app/action.hh +++ b/lib/nes/app/action.hh @@ -1,7 +1,7 @@ #pragma once -#include "../common/status.hh" -#include <string_view> +#include "nes/common/containers/string-view.hh" +#include "nes/common/status.hh" namespace nes::app { @@ -25,8 +25,8 @@ namespace nes::app private: type type_{ type::none }; - std::string_view file_name_; - std::string_view message_; + string_view file_name_; + string_view message_; status error_{ status::success }; public: @@ -40,14 +40,14 @@ namespace nes::app static auto cancel_quit() -> action { return action{ type::cancel_quit }; } static auto confirm_quit() -> action { return action{ type::confirm_quit }; } - static auto launch_game(std::string_view const file_name) -> action + static auto launch_game(string_view const file_name) -> action { auto res = action{ type::launch_game }; res.file_name_ = file_name; return res; } - static auto show_error(std::string_view const message, status const error) -> action + static auto show_error(string_view const message, status const error) -> action { auto res = action{ type::show_error }; res.message_ = message; @@ -56,8 +56,8 @@ namespace nes::app } auto get_type() const -> type { return type_; } - auto get_file_name() const -> std::string_view { return file_name_; } - auto get_message() const -> std::string_view { return message_; } + auto get_file_name() const -> string_view { return file_name_; } + auto get_message() const -> string_view { return message_; } auto get_error() const -> status { return error_; } private: |
