summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/kernel')
-rw-r--r--src/sql/kernel/qsqlerror.cpp4
-rw-r--r--src/sql/kernel/qsqlerror.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sql/kernel/qsqlerror.cpp b/src/sql/kernel/qsqlerror.cpp
index edf034a48d..67c3be0c2d 100644
--- a/src/sql/kernel/qsqlerror.cpp
+++ b/src/sql/kernel/qsqlerror.cpp
@@ -121,7 +121,7 @@ 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)
+bool QSqlError::operator==(const QSqlError& other) const
{
return (errorType == other.errorType);
}
@@ -131,7 +131,7 @@ bool QSqlError::operator==(const QSqlError& other)
Compare the \a other error's values to this error and returns true if it is not equal.
*/
-bool QSqlError::operator!=(const QSqlError& other)
+bool QSqlError::operator!=(const QSqlError& other) const
{
return (errorType != other.errorType);
}
diff --git a/src/sql/kernel/qsqlerror.h b/src/sql/kernel/qsqlerror.h
index 5a9cb50af0..dd2b650a57 100644
--- a/src/sql/kernel/qsqlerror.h
+++ b/src/sql/kernel/qsqlerror.h
@@ -66,8 +66,8 @@ public:
int number = -1);
QSqlError(const QSqlError& other);
QSqlError& operator=(const QSqlError& other);
- bool operator==(const QSqlError& other);
- bool operator!=(const QSqlError& other);
+ bool operator==(const QSqlError& other) const;
+ bool operator!=(const QSqlError& other) const;
~QSqlError();
QString driverText() const;