Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
89a5a235
Commit
89a5a235
authored
Feb 18, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Feb 18, 2022
Browse files
Fix make-member-function-const
parent
5cfe618d
Pipeline
#139535
passed with stage
in 2 minutes and 26 seconds
Changes
10
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
addons/lspclient/lspclientpluginview.cpp
View file @
89a5a235
...
...
@@ -1337,7 +1337,7 @@ public:
m_diagnostic
.
range
=
LSPRange
::
invalid
();
}
bool
isCodeAction
()
bool
isCodeAction
()
const
{
return
!
m_diagnostic
.
range
.
isValid
()
&&
m_codeAction
.
title
.
size
();
}
...
...
addons/project/git/gitdiff.cpp
View file @
89a5a235
...
...
@@ -110,7 +110,7 @@ public:
{
return
headingLineIdx
>
line
;
}
bool
operator
>=
(
const
DiffHunk
&
b
)
bool
operator
>=
(
const
DiffHunk
&
b
)
const
{
return
headingLineIdx
>=
b
.
lastLineIdx
();
}
...
...
addons/project/kateprojectplugin.cpp
View file @
89a5a235
...
...
@@ -451,7 +451,7 @@ void KateProjectPlugin::setGitStatusShowNumStat(bool show)
writeConfig
();
}
bool
KateProjectPlugin
::
showGitStatusWithNumStat
()
bool
KateProjectPlugin
::
showGitStatusWithNumStat
()
const
{
return
m_gitNumStat
;
}
...
...
addons/project/kateprojectplugin.h
View file @
89a5a235
...
...
@@ -120,7 +120,7 @@ public:
bool
multiProjectGoto
()
const
;
void
setGitStatusShowNumStat
(
bool
show
);
bool
showGitStatusWithNumStat
();
bool
showGitStatusWithNumStat
()
const
;
void
setSingleClickAction
(
ClickAction
cb
);
ClickAction
singleClickAcion
();
...
...
addons/search/search_open_files.cpp
View file @
89a5a235
...
...
@@ -16,7 +16,7 @@ SearchOpenFiles::SearchOpenFiles(QObject *parent)
});
}
bool
SearchOpenFiles
::
searching
()
bool
SearchOpenFiles
::
searching
()
const
{
return
!
m_cancelSearch
;
}
...
...
addons/search/search_open_files.h
View file @
89a5a235
...
...
@@ -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
:
...
...
kate/katestashmanager.cpp
View file @
89a5a235
...
...
@@ -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
())
{
...
...
kate/katestashmanager.h
View file @
89a5a235
...
...
@@ -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
);
...
...
kate/kateviewspace.cpp
View file @
89a5a235
...
...
@@ -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
;
}
...
...
kate/kateviewspace.h
View file @
89a5a235
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment