summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2012-03-20 12:39:17 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-22 11:55:29 +0100
commitc0ac7c5a314eca6bacf411eb61025254dd641b3e (patch)
tree622ab41b7fa933bb9101c9f93d51a799ddfd6a25
parent9df25c5d29b7e9e484292e8e28b6dc8c5705bd72 (diff)
Fixed a warning in JsonDbCollator QString from string literal
Change-Id: Ibed91324c1e1075ef0555b54ec74e8d8378cc73e Reviewed-by: Kevin Simons <kevin.simons@nokia.com>
-rw-r--r--src/common/jsondbcollator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/jsondbcollator.cpp b/src/common/jsondbcollator.cpp
index 61e0139..4fa45c4 100644
--- a/src/common/jsondbcollator.cpp
+++ b/src/common/jsondbcollator.cpp
@@ -148,7 +148,7 @@ void JsonDbCollator::init()
Q_ASSERT((int)d->collation < collationStringsCount);
const char *collationString = collationStrings[(int)d->collation];
UErrorCode status = U_ZERO_ERROR;
- QByteArray name = (d->locale.bcp47Name().replace(QLatin1Char('-'), QLatin1Char('_')) + QString("@collation=") + QLatin1String(collationString)).toLatin1();
+ QByteArray name = (d->locale.bcp47Name().replace(QLatin1Char('-'), QLatin1Char('_')) + QLatin1String("@collation=") + QLatin1String(collationString)).toLatin1();
d->collator = ucol_open(name.constData(), &status);
if (U_FAILURE(status))
qWarning("Could not create collator: %d", status);