summaryrefslogtreecommitdiffstats
path: root/src/sql/kernel/qsqlerror.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2023-03-31 20:05:48 +0200
committerMarc Mutz <marc.mutz@qt.io>2023-04-01 11:31:43 +0000
commitb5fe88a6e5251251d0f65b2f9cb5b28c01cc3b63 (patch)
tree534ef761ee092b4ff115384dfcd78c3391e7fc73 /src/sql/kernel/qsqlerror.cpp
parente848dd14f5ece82bae0d4b0d1acc268701174321 (diff)
QSqlError: misc cleanup
- fix formatting for qsqlerror.cpp/.h - replace a size() == 1 "x"_L1 with u'x' Pick-to: 6.5 Change-Id: I74c92f27be4345737fcfc73368f834a2f7920808 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/sql/kernel/qsqlerror.cpp')
-rw-r--r--src/sql/kernel/qsqlerror.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sql/kernel/qsqlerror.cpp b/src/sql/kernel/qsqlerror.cpp
index 7f56357c10..1e093c236c 100644
--- a/src/sql/kernel/qsqlerror.cpp
+++ b/src/sql/kernel/qsqlerror.cpp
@@ -103,7 +103,7 @@ QSqlError::QSqlError(const QString &driverText, const QString &databaseText,
/*!
Creates a copy of \a other.
*/
-QSqlError::QSqlError(const QSqlError& other)
+QSqlError::QSqlError(const QSqlError &other)
: d(new QSqlErrorPrivate(*other.d))
{
}
@@ -112,7 +112,7 @@ QSqlError::QSqlError(const QSqlError& other)
Assigns the \a other error's values to this error.
*/
-QSqlError& QSqlError::operator=(const QSqlError& other)
+QSqlError &QSqlError::operator=(const QSqlError &other)
{
if (&other == this)
return *this;
@@ -129,7 +129,7 @@ QSqlError& QSqlError::operator=(const QSqlError& other)
Compare the \a other error's values to this error and returns \c true, if it equal.
*/
-bool QSqlError::operator==(const QSqlError& other) const
+bool QSqlError::operator==(const QSqlError &other) const
{
return (d->errorType == other.d->errorType);
}
@@ -139,7 +139,7 @@ bool QSqlError::operator==(const QSqlError& other) const
Compare the \a other error's values to this error and returns \c true if it is not equal.
*/
-bool QSqlError::operator!=(const QSqlError& other) const
+bool QSqlError::operator!=(const QSqlError &other) const
{
return (d->errorType != other.d->errorType);
}
@@ -209,7 +209,7 @@ QString QSqlError::nativeErrorCode() const
QString QSqlError::text() const
{
QString result = d->databaseError;
- if (!d->databaseError.isEmpty() && !d->driverError.isEmpty() && !d->databaseError.endsWith("\n"_L1))
+ if (!d->databaseError.isEmpty() && !d->driverError.isEmpty() && !d->databaseError.endsWith(u'\n'))
result += u' ';
result += d->driverError;
return result;