]> sigrok.org Git - libsigrok.git/blobdiff - bindings/cxx/classes.cpp
C++: Use noexcept instead of throw()
[libsigrok.git] / bindings / cxx / classes.cpp
index 25cb60b02b8f17ae665268acc4e9e8ec1ea1b008..1b53d0a795968aa79c5a64ed0f9be90b38af3f5b 100644 (file)
@@ -60,12 +60,12 @@ Error::Error(int result) : result(result)
 {
 }
 
-const char *Error::what() const throw()
+const char *Error::what() const noexcept
 {
        return sr_strerror(result);
 }
 
-Error::~Error() throw()
+Error::~Error() noexcept
 {
 }