Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
Akonadi Search
Commits
b79fa397
Commit
b79fa397
authored
Sep 06, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modernize code
parent
de3bb0c7
Pipeline
#33290
passed with stage
in 18 minutes and 51 seconds
Changes
17
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
19 additions
and
46 deletions
+19
-46
agent/akonotesindexer.cpp
agent/akonotesindexer.cpp
+1
-1
agent/scheduler.cpp
agent/scheduler.cpp
+1
-1
core/query.cpp
core/query.cpp
+6
-16
core/query.h
core/query.h
+1
-1
core/term.cpp
core/term.cpp
+3
-10
core/term.h
core/term.h
+1
-1
debug/akonadisearchdebugdialog.cpp
debug/akonadisearchdebugdialog.cpp
+0
-5
debug/job/akonadisearchdebugsearchjob.cpp
debug/job/akonadisearchdebugsearchjob.cpp
+0
-1
lib/contactquery.h
lib/contactquery.h
+1
-1
lib/notequery.h
lib/notequery.h
+1
-1
lib/resultiterator.h
lib/resultiterator.h
+1
-1
xapian/xapiandatabase.h
xapian/xapiandatabase.h
+1
-1
xapian/xapianqueryparser.cpp
xapian/xapianqueryparser.cpp
+0
-2
xapian/xapianqueryparser.h
xapian/xapianqueryparser.h
+1
-1
xapian/xapiansearchstore.cpp
xapian/xapiansearchstore.cpp
+0
-1
xapian/xapiantermgenerator.cpp
xapian/xapiantermgenerator.cpp
+0
-1
xapian/xapiantermgenerator.h
xapian/xapiantermgenerator.h
+1
-1
No files found.
agent/akonotesindexer.cpp
View file @
b79fa397
...
...
@@ -33,7 +33,7 @@ AkonotesIndexer::~AkonotesIndexer()
QStringList
AkonotesIndexer
::
mimeTypes
()
const
{
return
QStringList
()
<<
QStringLiteral
(
"text/x-vnd.akonadi.note"
);
return
{
QStringLiteral
(
"text/x-vnd.akonadi.note"
)
}
;
}
void
AkonotesIndexer
::
index
(
const
Akonadi
::
Item
&
item
)
...
...
agent/scheduler.cpp
View file @
b79fa397
core/query.cpp
View file @
b79fa397
...
...
@@ -26,28 +26,18 @@ const int defaultLimit = 100000;
class
Q_DECL_HIDDEN
Akonadi
::
Search
::
Query
::
Private
{
public:
Private
()
{
m_limit
=
defaultLimit
;
m_offset
=
0
;
m_yearFilter
=
-
1
;
m_monthFilter
=
-
1
;
m_dayFilter
=
-
1
;
m_sortingOption
=
SortAuto
;
}
Term
m_term
;
QStringList
m_types
;
QString
m_searchString
;
uint
m_limit
;
uint
m_offset
;
uint
m_limit
=
defaultLimit
;
uint
m_offset
=
0
;
int
m_yearFilter
;
int
m_monthFilter
;
int
m_dayFilter
;
int
m_yearFilter
=
-
1
;
int
m_monthFilter
=
-
1
;
int
m_dayFilter
=
-
1
;
SortingOption
m_sortingOption
;
SortingOption
m_sortingOption
=
SortAuto
;
QString
m_sortingProperty
;
QVariantMap
m_customOptions
;
};
...
...
core/query.h
View file @
b79fa397
...
...
@@ -139,7 +139,7 @@ public:
private:
class
Private
;
Private
*
d
;
Private
*
const
d
;
};
}
}
...
...
core/term.cpp
View file @
b79fa397
...
...
@@ -16,23 +16,16 @@ using namespace Akonadi::Search;
class
Q_DECL_HIDDEN
Akonadi
::
Search
::
Term
::
Private
{
public:
Operation
m_op
;
Comparator
m_comp
;
Operation
m_op
=
None
;
Comparator
m_comp
=
Auto
;
QString
m_property
;
QVariant
m_value
;
bool
m_isNegated
;
bool
m_isNegated
=
false
;
QList
<
Term
>
m_subTerms
;
QVariantHash
m_userData
;
Private
()
{
m_op
=
None
;
m_comp
=
Auto
;
m_isNegated
=
false
;
}
};
Term
::
Term
()
...
...
core/term.h
View file @
b79fa397
...
...
@@ -115,7 +115,7 @@ public:
private:
class
Private
;
Private
*
d
;
Private
*
const
d
;
};
inline
Term
operator
&&
(
const
Term
&
lhs
,
const
Term
&
rhs
)
...
...
debug/akonadisearchdebugdialog.cpp
View file @
b79fa397
...
...
@@ -24,11 +24,6 @@ using namespace Akonadi::Search;
class
Akonadi
::
Search
::
AkonadiSearchDebugDialogPrivate
{
public:
AkonadiSearchDebugDialogPrivate
()
:
mAkonadiSearchDebugWidget
(
nullptr
)
{
}
AkonadiSearchDebugWidget
*
mAkonadiSearchDebugWidget
=
nullptr
;
};
...
...
debug/job/akonadisearchdebugsearchjob.cpp
View file @
b79fa397
...
...
@@ -12,7 +12,6 @@
using
namespace
Akonadi
::
Search
;
AkonadiSearchDebugSearchJob
::
AkonadiSearchDebugSearchJob
(
QObject
*
parent
)
:
QObject
(
parent
)
,
mProcess
(
nullptr
)
{
}
...
...
lib/contactquery.h
View file @
b79fa397
...
...
@@ -47,7 +47,7 @@ public:
private:
class
Private
;
Private
*
d
;
Private
*
const
d
;
};
}
}
...
...
lib/notequery.h
View file @
b79fa397
...
...
@@ -35,7 +35,7 @@ public:
private:
class
Private
;
Private
*
d
;
Private
*
const
d
;
};
}
}
...
...
lib/resultiterator.h
View file @
b79fa397
...
...
@@ -38,7 +38,7 @@ private:
friend
class
CollectionQuery
;
class
Private
;
Private
*
d
;
Private
*
const
d
;
};
}
}
...
...
xapian/xapiandatabase.h
View file @
b79fa397
...
...
@@ -71,7 +71,7 @@ private:
QVector
<
uint
>
m_docsToRemove
;
std
::
string
m_path
;
bool
m_writeOnly
=
false
;
const
bool
m_writeOnly
=
false
;
Xapian
::
WritableDatabase
createWritableDb
();
};
...
...
xapian/xapianqueryparser.cpp
View file @
b79fa397
...
...
@@ -14,8 +14,6 @@
using
namespace
Akonadi
::
Search
;
XapianQueryParser
::
XapianQueryParser
()
:
m_db
(
nullptr
)
,
m_autoExpand
(
true
)
{
}
...
...
xapian/xapianqueryparser.h
View file @
b79fa397
...
...
@@ -37,7 +37,7 @@ public:
private:
Xapian
::
Database
*
m_db
=
nullptr
;
bool
m_autoExpand
;
bool
m_autoExpand
=
true
;
};
}
}
...
...
xapian/xapiansearchstore.cpp
View file @
b79fa397
...
...
@@ -22,7 +22,6 @@ XapianSearchStore::XapianSearchStore(QObject *parent)
:
SearchStore
(
parent
)
,
m_mutex
(
QMutex
::
Recursive
)
,
m_nextId
(
1
)
,
m_db
(
nullptr
)
{
}
...
...
xapian/xapiantermgenerator.cpp
View file @
b79fa397
...
...
@@ -14,7 +14,6 @@ using namespace Akonadi::Search;
XapianTermGenerator
::
XapianTermGenerator
(
Xapian
::
Document
*
doc
)
:
m_doc
(
doc
)
,
m_position
(
1
)
{
if
(
doc
)
{
m_termGen
.
set_document
(
*
doc
);
...
...
xapian/xapiantermgenerator.h
View file @
b79fa397
...
...
@@ -34,7 +34,7 @@ private:
Xapian
::
Document
*
m_doc
=
nullptr
;
Xapian
::
TermGenerator
m_termGen
;
int
m_position
;
int
m_position
=
1
;
};
}
}
...
...
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