diff options
Diffstat (limited to 'src/sql/kernel/qsqlerror.cpp')
-rw-r--r-- | src/sql/kernel/qsqlerror.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/sql/kernel/qsqlerror.cpp b/src/sql/kernel/qsqlerror.cpp index a8ffdffa8a..fd731e4974 100644 --- a/src/sql/kernel/qsqlerror.cpp +++ b/src/sql/kernel/qsqlerror.cpp @@ -124,6 +124,26 @@ QSqlError& QSqlError::operator=(const QSqlError& other) } /*! + Compare the \a other error's values to this error and returns true, if it equal. +*/ + +bool QSqlError::operator==(const QSqlError& other) +{ + return (errorType == other.errorType); +} + + +/*! + Compare the \a other error's values to this error and returns true if it is not equal. +*/ + +bool QSqlError::operator!=(const QSqlError& other) +{ + return (errorType != other.errorType); +} + + +/*! Destroys the object and frees any allocated resources. */ |