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
Akonadi Search
Commits
b0f4dbf4
Commit
b0f4dbf4
authored
Mar 14, 2022
by
Laurent Montel
😁
Browse files
Fix some clazy warnings
parent
e271e010
Pipeline
#150133
passed with stage
in 4 minutes and 37 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/resultiterator.cpp
View file @
b0f4dbf4
...
...
@@ -22,9 +22,7 @@ ResultIterator::ResultIterator()
{
}
ResultIterator
::
ResultIterator
(
const
ResultIterator
&
rhs
)
=
default
;
ResultIterator
::
ResultIterator
(
const
ResultIterator
&
rhs
)
=
default
;
ResultIterator
::~
ResultIterator
()
=
default
;
...
...
xapian/tests/writeiotest.cpp
View file @
b0f4dbf4
...
...
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
db
.
commit
();
int
dbSize
=
0
;
QDir
dbDir
(
tempDir
.
path
());
const
QDir
dbDir
(
tempDir
.
path
());
const
auto
entryInfoList
=
dbDir
.
entryInfoList
(
QDir
::
Files
);
for
(
const
QFileInfo
&
file
:
entryInfoList
)
{
qDebug
()
<<
file
.
fileName
()
<<
file
.
size
()
/
1024
<<
"kb"
;
...
...
xapian/xapiansearchstore.cpp
View file @
b0f4dbf4
...
...
@@ -20,7 +20,6 @@ using namespace Akonadi::Search;
XapianSearchStore
::
XapianSearchStore
(
QObject
*
parent
)
:
SearchStore
(
parent
)
,
m_mutex
()
,
m_nextId
(
1
)
{
}
...
...
@@ -60,7 +59,7 @@ Xapian::Query XapianSearchStore::toXapianQuery(Xapian::Query::op op, const QList
queries
.
reserve
(
terms
.
size
());
for
(
const
Term
&
term
:
terms
)
{
Xapian
::
Query
q
=
toXapianQuery
(
term
);
const
Xapian
::
Query
q
=
toXapianQuery
(
term
);
queries
<<
q
;
}
...
...
xapian/xapiansearchstore.h
View file @
b0f4dbf4
...
...
@@ -107,7 +107,7 @@ private:
};
QHash
<
int
,
Result
>
m_queryMap
;
int
m_nextId
;
int
m_nextId
=
1
;
QString
m_dbPath
;
...
...
xapian/xapiantermgenerator.cpp
View file @
b0f4dbf4
...
...
@@ -55,7 +55,7 @@ QStringList XapianTermGenerator::termList(const QString &text)
QString
cleanString
;
cleanString
.
reserve
(
denormalized
.
size
());
for
(
const
QChar
&
ch
:
denormalized
)
{
auto
cat
=
ch
.
category
();
const
auto
cat
=
ch
.
category
();
if
(
cat
!=
QChar
::
Mark_NonSpacing
&&
cat
!=
QChar
::
Mark_SpacingCombining
&&
cat
!=
QChar
::
Mark_Enclosing
)
{
cleanString
.
append
(
ch
);
}
...
...
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