forked from qt-creator/qt-creator
Replace QLatin1String("x") with QLatin1Char('x') where possible
Change-Id: I2f90c8ae7b5e968b9de882833f8661ab540a9232 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -193,7 +193,7 @@ void BranchDialog::checkout()
|
||||
const QString currentBranch = m_model->fullName(m_model->currentBranch());
|
||||
const QString nextBranch = m_model->fullName(idx);
|
||||
const QString popMessageStart = QCoreApplication::applicationName() +
|
||||
QLatin1String(" ") + nextBranch + QLatin1String("-AutoStash ");
|
||||
QLatin1Char(' ') + nextBranch + QLatin1String("-AutoStash ");
|
||||
|
||||
BranchCheckoutDialog branchCheckoutDialog(this, currentBranch, nextBranch);
|
||||
GitClient *gitClient = GitPlugin::instance()->gitClient();
|
||||
|
||||
@@ -145,7 +145,7 @@ void GerritParameters::fromSettings(const QSettings *s)
|
||||
port = s->value(rootKey + QLatin1String(portKeyC), QVariant(int(defaultPort))).toInt();
|
||||
portFlag = s->value(rootKey + QLatin1String(portFlagKeyC), QLatin1String(defaultPortFlag)).toString();
|
||||
savedQueries = s->value(rootKey + QLatin1String(savedQueriesKeyC), QString()).toString()
|
||||
.split(QLatin1String(","));
|
||||
.split(QLatin1Char(','));
|
||||
https = s->value(rootKey + QLatin1String(httpsKeyC), QVariant(true)).toBool();
|
||||
if (ssh.isEmpty())
|
||||
ssh = detectSsh();
|
||||
|
||||
@@ -526,7 +526,7 @@ QString GerritPlugin::findLocalRepository(QString project, const QString &branch
|
||||
QScopedPointer<QRegExp> branchRegexp;
|
||||
if (!branch.isEmpty() && branch != QLatin1String("master")) {
|
||||
QString branchPattern = branch;
|
||||
branchPattern.replace(QLatin1String("."), QLatin1String("[\\.-_]?"));
|
||||
branchPattern.replace(QLatin1Char('.'), QLatin1String("[\\.-_]?"));
|
||||
const QString pattern = QLatin1Char('^') + project
|
||||
+ QLatin1String("[-_]?")
|
||||
+ branchPattern + QLatin1Char('$');
|
||||
|
||||
Reference in New Issue
Block a user