Vcs: Code cosmetics

Drop some Utils:: and rely on some aspects' operator()()

Change-Id: I40d2c2973c1c9eff443bb74b8da44e0824d8d5c6
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2023-07-14 11:04:55 +02:00
parent 4a0a6f07e7
commit 93d96c9d75
9 changed files with 36 additions and 36 deletions

View File

@@ -1437,7 +1437,7 @@ void GitPluginPrivate::setupInstantBlame()
return;
}
if (!settings().instantBlame.value()) {
if (!settings().instantBlame()) {
m_lastVisitedEditorLine = -1;
stopInstantBlame();
return;
@@ -1456,7 +1456,7 @@ void GitPluginPrivate::setupInstantBlame()
m_blameCursorPosConn = connect(widget, &QPlainTextEdit::cursorPositionChanged, this,
[this] {
if (!settings().instantBlame.value()) {
if (!settings().instantBlame()) {
disconnect(m_blameCursorPosConn);
return;
}
@@ -1515,7 +1515,7 @@ CommitInfo parseBlameOutput(const QStringList &blame, const Utils::FilePath &fil
void GitPluginPrivate::instantBlameOnce()
{
if (!settings().instantBlame.value()) {
if (!settings().instantBlame()) {
const TextEditorWidget *widget = TextEditorWidget::currentTextEditorWidget();
if (!widget)
return;
@@ -1725,7 +1725,7 @@ void GitPluginPrivate::pull()
const VcsBasePluginState state = currentState();
QTC_ASSERT(state.hasTopLevel(), return);
FilePath topLevel = state.topLevel();
bool rebase = settings().pullRebase.value();
bool rebase = settings().pullRebase();
if (!rebase) {
QString currentBranch = m_gitClient.synchronousCurrentLocalBranch(topLevel);