mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
throw() -> noexcept
This commit is contained in:
parent
7b176d898b
commit
d1505693dd
@ -123,12 +123,12 @@ public:
|
||||
Instead, the macros CV_Error(), CV_Error_() and CV_Assert() are used.
|
||||
*/
|
||||
Exception(int _code, const String& _err, const String& _func, const String& _file, int _line);
|
||||
virtual ~Exception() throw();
|
||||
virtual ~Exception() CV_NOEXCEPT;
|
||||
|
||||
/*!
|
||||
\return the error description and the context as a text string.
|
||||
*/
|
||||
virtual const char *what() const throw() CV_OVERRIDE;
|
||||
virtual const char *what() const CV_NOEXCEPT CV_OVERRIDE;
|
||||
void formatMessage();
|
||||
|
||||
String msg; ///< the formatted error message
|
||||
|
@ -318,12 +318,12 @@ Exception::Exception(int _code, const String& _err, const String& _func, const S
|
||||
formatMessage();
|
||||
}
|
||||
|
||||
Exception::~Exception() throw() {}
|
||||
Exception::~Exception() CV_NOEXCEPT {}
|
||||
|
||||
/*!
|
||||
\return the error description and the context as a text string.
|
||||
*/
|
||||
const char* Exception::what() const throw() { return msg.c_str(); }
|
||||
const char* Exception::what() const CV_NOEXCEPT { return msg.c_str(); }
|
||||
|
||||
void Exception::formatMessage()
|
||||
{
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
result = gPhoto2Result;
|
||||
method = methodStr;
|
||||
}
|
||||
virtual const char * what() const throw() CV_OVERRIDE
|
||||
virtual const char * what() const CV_NOEXCEPT CV_OVERRIDE
|
||||
{
|
||||
return gp_result_as_string(result);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user