use "const std::string &" instead of "const char *" it will be converted anyway
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user