Still use 0 instead of nullptr in numerous forms of tr().

Looks like lupdate isn't prepared yet for nullptr.

Change-Id: I8341d6b11c63871b4d2240dd184228f53dcbf35c
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
Jarek Kobus
2015-07-27 14:49:17 +02:00
parent 09b405d11e
commit 9be93b6962
2 changed files with 3 additions and 3 deletions

View File

@@ -741,10 +741,10 @@ QString decodeData(const QByteArray &ba, int encoding)
return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<not accessible>"); return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<not accessible>");
} }
case SpecialItemCountValue: { case SpecialItemCountValue: {
return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<%n items>", nullptr, ba.toInt()); return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<%n items>", 0, ba.toInt());
} }
case SpecialMinimumItemCountValue: { case SpecialMinimumItemCountValue: {
return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<at least %n items>", nullptr, ba.toInt()); return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<at least %n items>", 0, ba.toInt());
} }
case SpecialNotCallableValue: { case SpecialNotCallableValue: {
return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<not callable>"); return QCoreApplication::translate("Debugger::Internal::WatchHandler", "<not callable>");

View File

@@ -210,7 +210,7 @@ void BaseFileFind::doReplace(const QString &text,
QStringList files = replaceAll(text, items, preserveCase); QStringList files = replaceAll(text, items, preserveCase);
if (!files.isEmpty()) { if (!files.isEmpty()) {
Utils::FadingIndicator::showText(ICore::mainWindow(), Utils::FadingIndicator::showText(ICore::mainWindow(),
tr("%n occurrences replaced.", nullptr, items.size()), tr("%n occurrences replaced.", 0, items.size()),
Utils::FadingIndicator::SmallText); Utils::FadingIndicator::SmallText);
DocumentManager::notifyFilesChangedInternally(files); DocumentManager::notifyFilesChangedInternally(files);
SearchResultWindow::instance()->hide(); SearchResultWindow::instance()->hide();