use "const std::string &" instead of "const char *" it will be converted anyway

This commit is contained in:
Axel Kohlmeyer
2025-06-14 11:16:06 -04:00
parent 81bfcb80e7
commit 88f5ad160a
2 changed files with 2 additions and 2 deletions

View File

@ -306,7 +306,7 @@ ErrorType Error::get_last_error_type() const
set the last error message and error type
------------------------------------------------------------------------- */
void Error::set_last_error(const char *msg, ErrorType type)
void Error::set_last_error(const std::string &msg, ErrorType type)
{
last_error_message = msg;
last_error_type = type;

View File

@ -97,7 +97,7 @@ class Error : protected Pointers {
std::string get_last_error() const;
ErrorType get_last_error_type() const;
void set_last_error(const char *msg, ErrorType type = ERROR_NORMAL);
void set_last_error(const std::string &msg, ErrorType type = ERROR_NORMAL);
int set_show_error(const int flag);
private: