Commit 89a5a235 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Fix make-member-function-const

parent 5cfe618d
Pipeline #139535 passed with stage
in 2 minutes and 26 seconds
......@@ -1337,7 +1337,7 @@ public:
m_diagnostic.range = LSPRange::invalid();
}
bool isCodeAction()
bool isCodeAction() const
{
return !m_diagnostic.range.isValid() && m_codeAction.title.size();
}
......
......@@ -110,7 +110,7 @@ public:
{
return headingLineIdx > line;
}
bool operator>=(const DiffHunk &b)
bool operator>=(const DiffHunk &b) const
{
return headingLineIdx >= b.lastLineIdx();
}
......
......@@ -451,7 +451,7 @@ void KateProjectPlugin::setGitStatusShowNumStat(bool show)
writeConfig();
}
bool KateProjectPlugin::showGitStatusWithNumStat()
bool KateProjectPlugin::showGitStatusWithNumStat() const
{
return m_gitNumStat;
}
......
......@@ -120,7 +120,7 @@ public:
bool multiProjectGoto() const;
void setGitStatusShowNumStat(bool show);
bool showGitStatusWithNumStat();
bool showGitStatusWithNumStat() const;
void setSingleClickAction(ClickAction cb);
ClickAction singleClickAcion();
......
......@@ -16,7 +16,7 @@ SearchOpenFiles::SearchOpenFiles(QObject *parent)
});
}
bool SearchOpenFiles::searching()
bool SearchOpenFiles::searching() const
{
return !m_cancelSearch;
}
......
......@@ -23,7 +23,7 @@ public:
SearchOpenFiles(QObject *parent = nullptr);
void startSearch(const QList<KTextEditor::Document *> &list, const QRegularExpression &regexp);
bool searching();
bool searching() const;
void terminateSearch();
public Q_SLOTS:
......
......@@ -71,7 +71,7 @@ void KateStashManager::stashDocuments(KConfig *config, const QList<KTextEditor::
}
}
bool KateStashManager::willStashDoc(KTextEditor::Document *doc)
bool KateStashManager::willStashDoc(KTextEditor::Document *doc) const
{
const auto activeSession = KateApp::self()->sessionManager()->activeSession();
if (!activeSession || activeSession->isAnonymous() || activeSession->name().isEmpty()) {
......
......@@ -45,7 +45,7 @@ public:
void stashDocuments(KConfig *cfg, const QList<KTextEditor::Document *> &documents);
bool willStashDoc(KTextEditor::Document *doc);
bool willStashDoc(KTextEditor::Document *doc) const;
void stashDocument(KTextEditor::Document *doc, const QString &stashfileName, KConfigGroup &kconfig, const QString &path);
static bool popDocument(KTextEditor::Document *doc, const KConfigGroup &kconfig);
......
......@@ -411,7 +411,7 @@ KTextEditor::View *KateViewSpace::currentView()
return qobject_cast<KTextEditor::View *>(stack->currentWidget());
}
bool KateViewSpace::isActiveSpace()
bool KateViewSpace::isActiveSpace() const
{
return m_isActiveSpace;
}
......
......@@ -36,7 +36,7 @@ public:
/**
* Returns \e true, if this view space is currently the active view space.
*/
bool isActiveSpace();
bool isActiveSpace() const;
/**
* Depending on @p active, mark this view space as active or inactive.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment