diff --git a/src/odbc/Exception.h b/src/odbc/Exception.h index 9066590..222fe00 100644 --- a/src/odbc/Exception.h +++ b/src/odbc/Exception.h @@ -48,7 +48,7 @@ class ODBC_EXPORT Exception : public std::exception * * @return Returns a description of the error that occurred. */ - virtual const char* what() const noexcept; + const char* what() const noexcept override; private: std::string msg_; diff --git a/src/odbc/RefCounted.h b/src/odbc/RefCounted.h index 4916f01..019d178 100644 --- a/src/odbc/RefCounted.h +++ b/src/odbc/RefCounted.h @@ -56,7 +56,7 @@ class Reference /** * Constructs a NULL reference. */ - Reference() : ptr_(0) {} + Reference() : ptr_(nullptr) {} /** * Constructs a reference to a given reference-counted object. @@ -133,7 +133,7 @@ class Reference * @return Returns true if this reference manages an object, false * otherwise. */ - bool isNull() const { return ptr_ == 0; } + bool isNull() const { return ptr_ == nullptr; } /** * Returns a reference to the managed object. @@ -183,7 +183,7 @@ class Reference * Decreases the reference-count of the managed object and does not * reference it anymore. */ - void reset() { reset_(0); } + void reset() { reset_(nullptr); } /** * Releases the currently managed object and manages a new object. diff --git a/src/odbc/Types.h b/src/odbc/Types.h index c71c3f6..30785a0 100644 --- a/src/odbc/Types.h +++ b/src/odbc/Types.h @@ -318,7 +318,7 @@ class ODBC_EXPORT decimal * * @return Returns the unscaled value of this decimal number. */ - const char* unscaledValue() const { return value_.c_str(); }; + const char* unscaledValue() const { return value_.c_str(); } /** * Returns a string representation of this number.