}
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);
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);
}
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())) {
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())) {