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
PIM
Akonadi
Commits
b1eeb34f
Commit
b1eeb34f
authored
May 12, 2021
by
Laurent Montel
Browse files
Fix some clazy warning
parent
39dfe517
Pipeline
#61640
passed with stage
in 11 minutes and 2 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
autotests/libs/collectionjobtest.cpp
View file @
b1eeb34f
...
...
@@ -67,7 +67,8 @@ template<class T> static void compareLists(const QVector<T> &l1, const QVector<T
}
}
template
<
typename
T
>
static
T
*
extractAttribute
(
QList
<
Attribute
*>
attrs
)
template
<
typename
T
>
static
T
*
extractAttribute
(
const
QList
<
Attribute
*>
&
attrs
)
{
T
dummy
;
for
(
Attribute
*
attr
:
attrs
)
{
...
...
autotests/libs/collectionmodifytest.cpp
View file @
b1eeb34f
...
...
@@ -29,7 +29,7 @@ private Q_SLOTS:
Collection
col
;
col
.
setName
(
QLatin1String
(
"test_collection"
));
col
.
setContentMimeTypes
({
Collection
::
mimeType
()});
col
.
setParentCollection
(
Collection
(
AkonadiTest
::
collectionIdFromPath
(
Q
Latin1
String
(
"res1"
))));
col
.
setParentCollection
(
Collection
(
AkonadiTest
::
collectionIdFromPath
(
QString
Literal
(
"res1"
))));
col
.
setRights
(
Collection
::
AllRights
);
auto
cj
=
new
CollectionCreateJob
(
col
,
this
);
...
...
@@ -39,7 +39,7 @@ private Q_SLOTS:
auto
attr
=
col
.
attribute
<
EntityDisplayAttribute
>
(
Collection
::
AddIfMissing
);
attr
->
setDisplayName
(
QStringLiteral
(
"Test Collection"
));
col
.
setContentMimeTypes
({
Collection
::
mimeType
(),
Q
Latin1
String
(
"application/octet-stream"
)});
col
.
setContentMimeTypes
({
Collection
::
mimeType
(),
QString
Literal
(
"application/octet-stream"
)});
auto
mj
=
new
CollectionModifyJob
(
col
,
this
);
AKVERIFYEXEC
(
mj
);
...
...
autotests/libs/testrunner/setup.cpp
View file @
b1eeb34f
...
...
@@ -37,7 +37,7 @@ bool SetupTest::startAkonadiDaemon()
mAkonadiDaemonProcess
->
setProgram
(
Akonadi
::
StandardDirs
::
findExecutable
(
QStringLiteral
(
"akonadi_control"
)),
{
QStringLiteral
(
"--instance"
),
instanceId
()});
mAkonadiDaemonProcess
->
start
();
const
bool
started
=
mAkonadiDaemonProcess
->
waitForStarted
(
5000
);
qCInfo
(
AKONADITEST_LOG
)
<<
"Started akonadi daemon with pid:"
<<
mAkonadiDaemonProcess
->
p
i
d
();
qCInfo
(
AKONADITEST_LOG
)
<<
"Started akonadi daemon with pid:"
<<
mAkonadiDaemonProcess
->
p
rocessI
d
();
return
started
;
}
...
...
src/core/changerecorderjournal.cpp
View file @
b1eeb34f
...
...
@@ -288,6 +288,7 @@ Protocol::ChangeNotificationPtr ChangeRecorderJournalReader::loadItemNotificatio
item
.
setFlags
(
bav
);
stream
>>
cnt
;
QVector
<
Protocol
::
FetchTagsResponse
>
tags
;
tags
.
reserve
(
cnt
);
for
(
int
k
=
0
;
k
<
cnt
;
++
k
)
{
Protocol
::
FetchTagsResponse
tag
;
stream
>>
i64
;
...
...
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