Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM MailCommon
Commits
7c8b0ef2
Commit
7c8b0ef2
authored
Oct 15, 2021
by
Laurent Montel
😁
Browse files
Add missing const + Q_REQUIRED_RESULT
parent
dc60839a
Pipeline
#89016
passed with stage
in 30 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/folder/hierarchicalfoldermatcher.cpp
View file @
7c8b0ef2
...
@@ -18,7 +18,7 @@ HierarchicalFolderMatcher::HierarchicalFolderMatcher()
...
@@ -18,7 +18,7 @@ HierarchicalFolderMatcher::HierarchicalFolderMatcher()
{
{
}
}
bool
HierarchicalFolderMatcher
::
isNull
()
bool
HierarchicalFolderMatcher
::
isNull
()
const
{
{
return
filterRegExps
.
empty
();
return
filterRegExps
.
empty
();
}
}
...
...
src/folder/hierarchicalfoldermatcher_p.h
View file @
7c8b0ef2
...
@@ -23,13 +23,13 @@ class HierarchicalFolderMatcher
...
@@ -23,13 +23,13 @@ class HierarchicalFolderMatcher
public:
public:
HierarchicalFolderMatcher
();
HierarchicalFolderMatcher
();
bool
isNull
();
Q_REQUIRED_RESULT
bool
isNull
()
const
;
void
setFilter
(
const
QString
&
filter
,
Qt
::
CaseSensitivity
caseSensitivity
);
void
setFilter
(
const
QString
&
filter
,
Qt
::
CaseSensitivity
caseSensitivity
);
bool
matches
(
const
QAbstractItemModel
*
model
,
const
QModelIndex
&
start
,
int
role
=
Qt
::
DisplayRole
);
Q_REQUIRED_RESULT
bool
matches
(
const
QAbstractItemModel
*
model
,
const
QModelIndex
&
start
,
int
role
=
Qt
::
DisplayRole
);
QModelIndex
findFirstMatch
(
const
QAbstractItemModel
*
model
,
const
QModelIndex
&
start
,
int
role
=
Qt
::
DisplayRole
);
Q_REQUIRED_RESULT
QModelIndex
findFirstMatch
(
const
QAbstractItemModel
*
model
,
const
QModelIndex
&
start
,
int
role
=
Qt
::
DisplayRole
);
private:
private:
std
::
vector
<
QRegularExpression
>
filterRegExps
;
std
::
vector
<
QRegularExpression
>
filterRegExps
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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