diff options
Diffstat (limited to 'src/linguist')
-rw-r--r-- | src/linguist/shared/profileevaluator.cpp | 4 | ||||
-rw-r--r-- | src/linguist/shared/ts.cpp | 2 | ||||
-rw-r--r-- | src/linguist/shared/xliff.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/linguist/shared/profileevaluator.cpp b/src/linguist/shared/profileevaluator.cpp index 6abb4d3a0..75c7aefda 100644 --- a/src/linguist/shared/profileevaluator.cpp +++ b/src/linguist/shared/profileevaluator.cpp @@ -2544,7 +2544,7 @@ ProStringList ProFileEvaluator::Private::evaluateExpandFunction( } r.detach(); // Keep m_tmp out of QRegExp's cache - const QRegExp regex(r, Qt::CaseSensitive, QRegExp::Wildcard); + QRegExp regex(r, Qt::CaseSensitive, QRegExp::Wildcard); for (int d = 0; d < dirs.count(); d++) { QString dir = dirs[d]; QDir qdir(pfx + dir); @@ -2566,7 +2566,7 @@ ProStringList ProFileEvaluator::Private::evaluateExpandFunction( if(args.count() != 3 ) { evalError(fL1S("replace(var, before, after) requires three arguments")); } else { - const QRegExp before(args.at(1).toQString()); + QRegExp before(args.at(1).toQString()); const QString &after(args.at(2).toQString(m_tmp2)); foreach (const ProString &val, values(map(args.at(0)))) { QString rstr = val.toQString(m_tmp1); diff --git a/src/linguist/shared/ts.cpp b/src/linguist/shared/ts.cpp index 1f3d7dee7..28fa14850 100644 --- a/src/linguist/shared/ts.cpp +++ b/src/linguist/shared/ts.cpp @@ -502,7 +502,7 @@ static QString evilBytes(const QString& str, } static void writeExtras(QTextStream &t, const char *indent, - const TranslatorMessage::ExtraData &extras, const QRegExp &drops) + const TranslatorMessage::ExtraData &extras, QRegExp drops) { for (Translator::ExtraData::ConstIterator it = extras.begin(); it != extras.end(); ++it) { if (!drops.exactMatch(it.key())) { diff --git a/src/linguist/shared/xliff.cpp b/src/linguist/shared/xliff.cpp index c20c0fb40..fdc96bf86 100644 --- a/src/linguist/shared/xliff.cpp +++ b/src/linguist/shared/xliff.cpp @@ -192,7 +192,7 @@ static QString protect(const QString &str, bool makePhs = true) static void writeExtras(QTextStream &ts, int indent, - const TranslatorMessage::ExtraData &extras, const QRegExp &drops) + const TranslatorMessage::ExtraData &extras, QRegExp drops) { for (Translator::ExtraData::ConstIterator it = extras.begin(); it != extras.end(); ++it) { if (!drops.exactMatch(it.key())) { |