forked from qt-creator/qt-creator
Replace QLatin1String, QStringLiteral ("") with QString()
Change-Id: I21e6165e7e8858df8436c04c9afcc1be5242bda4 Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
@@ -489,7 +489,7 @@ public:
|
||||
{
|
||||
public:
|
||||
explicit ReferenceTag(ReferenceKind k = Nullpointer,
|
||||
const QString &string = QLatin1String(""))
|
||||
const QString &string = QString())
|
||||
: kind(k),
|
||||
typeName(string)
|
||||
{
|
||||
|
||||
@@ -172,7 +172,7 @@ void Theme::readSettings(QSettings &settings)
|
||||
{
|
||||
d->displayName = settings.value(QLatin1String("ThemeName"), QLatin1String("unnamed")).toString();
|
||||
d->preferredStyles = settings.value(QLatin1String("PreferredStyles")).toStringList();
|
||||
d->preferredStyles.removeAll(QLatin1String(""));
|
||||
d->preferredStyles.removeAll(QString());
|
||||
d->defaultTextEditorColorScheme =
|
||||
settings.value(QLatin1String("DefaultTextEditorColorScheme")).toString();
|
||||
}
|
||||
|
||||
@@ -203,7 +203,7 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
expander->registerVariable("UUID", tr("Generate a new UUID."),
|
||||
[]() { return QUuid::createUuid().toString(); });
|
||||
|
||||
expander->registerPrefix("#:", tr("A comment."), [](const QString &) { return QStringLiteral(""); });
|
||||
expander->registerPrefix("#:", tr("A comment."), [](const QString &) { return QString(); });
|
||||
|
||||
// Make sure all wizards are there when the user might access the keyboard shortcuts:
|
||||
connect(ICore::instance(), &ICore::optionsDialogRequested, []() { IWizardFactory::allWizardFactories(); });
|
||||
|
||||
@@ -44,7 +44,7 @@ CvsSettings::CvsSettings()
|
||||
{
|
||||
setSettingsGroup(QLatin1String("CVS"));
|
||||
declareKey(binaryPathKey, QLatin1String("cvs" QTC_HOST_EXE_SUFFIX));
|
||||
declareKey(cvsRootKey, QLatin1String(""));
|
||||
declareKey(cvsRootKey, QString());
|
||||
declareKey(diffOptionsKey, QLatin1String("-du"));
|
||||
declareKey(describeByCommitIdKey, true);
|
||||
declareKey(diffIgnoreWhiteSpaceKey, false);
|
||||
|
||||
@@ -1275,7 +1275,7 @@ QStringList Differ::encode(const QString &text1,
|
||||
QString *encodedText2)
|
||||
{
|
||||
QStringList lines;
|
||||
lines.append(QLatin1String("")); // don't use code: 0
|
||||
lines.append(QString()); // don't use code: 0
|
||||
QMap<QString, int> lineToCode;
|
||||
|
||||
*encodedText1 = encode(text1, &lines, &lineToCode);
|
||||
|
||||
@@ -46,8 +46,8 @@ SubversionSettings::SubversionSettings()
|
||||
declareKey(binaryPathKey, QLatin1String("svn" QTC_HOST_EXE_SUFFIX));
|
||||
declareKey(logCountKey, 1000);
|
||||
declareKey(useAuthenticationKey, false);
|
||||
declareKey(userKey, QLatin1String(""));
|
||||
declareKey(passwordKey, QLatin1String(""));
|
||||
declareKey(userKey, QString());
|
||||
declareKey(passwordKey, QString());
|
||||
declareKey(spaceIgnorantAnnotationKey, true);
|
||||
declareKey(diffIgnoreWhiteSpaceKey, false);
|
||||
declareKey(logVerboseKey, false);
|
||||
|
||||
@@ -201,9 +201,9 @@ const QLatin1String VcsBaseClientSettings::pathKey("Path");
|
||||
VcsBaseClientSettings::VcsBaseClientSettings() :
|
||||
d(new Internal::VcsBaseClientSettingsPrivate)
|
||||
{
|
||||
declareKey(binaryPathKey, QLatin1String(""));
|
||||
declareKey(userNameKey, QLatin1String(""));
|
||||
declareKey(userEmailKey, QLatin1String(""));
|
||||
declareKey(binaryPathKey, QString());
|
||||
declareKey(userNameKey, QString());
|
||||
declareKey(userEmailKey, QString());
|
||||
declareKey(logCountKey, 100);
|
||||
declareKey(promptOnSubmitKey, true);
|
||||
declareKey(timeoutKey, 30);
|
||||
|
||||
@@ -217,7 +217,7 @@ void BookmarkDialog::customContextMenuRequested(const QPoint &point)
|
||||
if (!index.isValid())
|
||||
return;
|
||||
|
||||
QMenu menu(QLatin1String(""), this);
|
||||
QMenu menu(this);
|
||||
|
||||
QAction *removeItem = menu.addAction(tr("Delete Folder"));
|
||||
QAction *renameItem = menu.addAction(tr("Rename Folder"));
|
||||
@@ -322,7 +322,7 @@ void BookmarkWidget::filterChanged()
|
||||
regExp.setPattern(searchField->text());
|
||||
filterBookmarkModel->setSourceModel(bookmarkManager->listBookmarkModel());
|
||||
} else {
|
||||
regExp.setPattern(QLatin1String(""));
|
||||
regExp.setPattern(QString());
|
||||
filterBookmarkModel->setSourceModel(bookmarkManager->treeBookmarkModel());
|
||||
}
|
||||
|
||||
@@ -366,7 +366,7 @@ void BookmarkWidget::customContextMenuRequested(const QPoint &point)
|
||||
QAction *renameItem = 0;
|
||||
QAction *showItemNewTab = 0;
|
||||
|
||||
QMenu menu(QLatin1String(""), this);
|
||||
QMenu menu(this);
|
||||
QString data = index.data(Qt::UserRole + 10).toString();
|
||||
if (data == QLatin1String("Folder")) {
|
||||
removeItem = menu.addAction(tr("Delete Folder"));
|
||||
|
||||
Reference in New Issue
Block a user