Core/String: Replace implicit operator std::string by ToStd::String
This commit is contained in:
@@ -148,7 +148,7 @@ namespace Nz
|
||||
|
||||
if (type == ErrorType_AssertFailed || (type != ErrorType_Warning &&
|
||||
(s_flags & ErrorFlag_ThrowException) != 0 && (s_flags & ErrorFlag_ThrowExceptionDisabled) == 0))
|
||||
throw std::runtime_error(error);
|
||||
throw std::runtime_error(error.ToStdString());
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -183,7 +183,7 @@ namespace Nz
|
||||
|
||||
if (type == ErrorType_AssertFailed || (type != ErrorType_Warning &&
|
||||
(s_flags & ErrorFlag_ThrowException) != 0 && (s_flags & ErrorFlag_ThrowExceptionDisabled) == 0))
|
||||
throw std::runtime_error(error);
|
||||
throw std::runtime_error(error.ToStdString());
|
||||
}
|
||||
|
||||
UInt32 Error::s_flags = ErrorFlag_None;
|
||||
|
||||
Reference in New Issue
Block a user