From f9083189bb36c39856bfe259096eb5df142ba397 Mon Sep 17 00:00:00 2001 From: Claudius Holeksa Date: Tue, 16 May 2023 16:04:28 +0200 Subject: c++: Fix naming convention for error --- src/core/error.cpp | 2 +- src/core/error.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/error.cpp b/src/core/error.cpp index 727ca95..9f58ef2 100644 --- a/src/core/error.cpp +++ b/src/core/error.cpp @@ -15,7 +15,7 @@ error::error(error &&error) , is_critical_{std::move(error.is_critical_)} , error_message_{std::move(error.error_message_)}{} -const std::string_view error::message() const { +const std::string_view error::get_message() const { return std::visit( [this](auto &&arg) -> const std::string_view { diff --git a/src/core/error.h b/src/core/error.h index 3d242b9..2ed7cd4 100644 --- a/src/core/error.h +++ b/src/core/error.h @@ -34,7 +34,7 @@ public: error &operator=(error &&) = default; - const std::string_view message() const; + const std::string_view get_message() const; bool failed() const; bool is_critical() const; -- cgit v1.2.3