summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqlerror.cpp
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2012-09-04 21:10:05 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-08 09:08:27 +0200
commitce8e6abe7fff563b11ab1e83e2bd83cbac5745f9 (patch)
treef914f6be4096738fb3a0720410478e0801b8974d /src/sql/kernel/qsqlerror.cpp
parentafb0260f50f41fa72f8447fdb84f8d907a725fe5 (diff)
Check for C++ operators that should be 'const'
Make sure all C++ class comparison operators are const. Change-Id: Ib4a66f2afe6c62f437dae1ecde94287d3db8442d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: David Faure <faure@kde.org>
Diffstat (limited to 'src/sql/kernel/qsqlerror.cpp')
-rw-r--r--src/sql/kernel/qsqlerror.cpp4
1 files changed, 2 insertions, 2 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);
}