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
KDE PIM Runtime
Commits
bf36a604
Commit
bf36a604
authored
Mar 08, 2021
by
Laurent Montel
😁
Browse files
Fix some clazy warning
parent
8b6dd7fd
Pipeline
#53472
failed with stage
in 28 minutes and 50 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
migration/googlegroupware/googleresourcemigrator.cpp
View file @
bf36a604
...
...
@@ -22,7 +22,7 @@
#include <memory>
GoogleResourceMigrator
::
GoogleResourceMigrator
()
:
MigratorBase
(
Q
Latin1
String
(
"googleresourcemigrator"
))
:
MigratorBase
(
QString
Literal
(
"googleresourcemigrator"
))
{
}
...
...
@@ -294,7 +294,7 @@ QString GoogleResourceMigrator::mergeAccountNames(const ResourceValues<QString>
return
{};
}
int
GoogleResourceMigrator
::
mergeAccountIds
(
const
ResourceValues
<
int
>
&
accountId
,
const
Instances
&
oldInstances
)
const
int
GoogleResourceMigrator
::
mergeAccountIds
(
ResourceValues
<
int
>
accountId
,
const
Instances
&
oldInstances
)
const
{
if
(
accountId
.
calendar
>
0
&&
accountId
.
contacts
>
0
)
{
if
(
accountId
.
calendar
==
accountId
.
contacts
)
{
...
...
migration/googlegroupware/googleresourcemigrator.h
View file @
bf36a604
...
...
@@ -52,7 +52,7 @@ private:
Q_REQUIRED_RESULT
bool
migrateAccount
(
const
QString
&
account
,
const
Instances
&
oldInstances
,
const
Akonadi
::
AgentInstance
&
newInstance
);
void
removeLegacyInstances
(
const
QString
&
account
,
const
Instances
&
instances
);
Q_REQUIRED_RESULT
QString
mergeAccountNames
(
const
ResourceValues
<
QString
>
&
accountName
,
const
Instances
&
oldInstances
)
const
;
Q_REQUIRED_RESULT
int
mergeAccountIds
(
const
ResourceValues
<
int
>
&
accountId
,
const
Instances
&
oldInstances
)
const
;
Q_REQUIRED_RESULT
int
mergeAccountIds
(
ResourceValues
<
int
>
accountId
,
const
Instances
&
oldInstances
)
const
;
QMap
<
QString
,
Instances
>
mMigrations
;
int
mMigrationCount
=
0
;
...
...
resources/ews/test/fakeserver/test/ewsfakesrv_test.cpp
View file @
bf36a604
...
...
@@ -156,7 +156,6 @@ void UtEwsFakeSrvTest::simpleResponse()
const
FakeEwsServer
::
DialogEntry
::
List
dialog
=
{
{
QStringLiteral
(
"if (//test1/a = <a />) then (<b/>) else ()"
),
FakeEwsServer
::
DialogEntry
::
ReplyCallback
(),
QStringLiteral
(
"Sample request 1"
)}};
QString
receivedReq
;
QScopedPointer
<
FakeEwsServer
>
srv
(
new
FakeEwsServer
(
this
));
srv
->
setDialog
(
dialog
);
QVERIFY
(
srv
->
start
());
...
...
@@ -174,7 +173,6 @@ void UtEwsFakeSrvTest::callbackResponse()
},
QStringLiteral
(
"Sample request 1"
)}};
QString
receivedReq
;
QScopedPointer
<
FakeEwsServer
>
srv
(
new
FakeEwsServer
(
this
));
srv
->
setDialog
(
dialog
);
QVERIFY
(
srv
->
start
());
...
...
@@ -193,7 +191,6 @@ void UtEwsFakeSrvTest::multipleResponses()
FakeEwsServer
::
DialogEntry
::
ReplyCallback
(),
QStringLiteral
(
"Sample request 2"
)}};
QString
receivedReq
;
QScopedPointer
<
FakeEwsServer
>
srv
(
new
FakeEwsServer
(
this
));
srv
->
setDialog
(
dialog
);
QVERIFY
(
srv
->
start
());
...
...
@@ -224,7 +221,6 @@ void UtEwsFakeSrvTest::emptyResponse()
},
QStringLiteral
(
"Sample request 1"
)}};
QString
receivedReq
;
QScopedPointer
<
FakeEwsServer
>
srv
(
new
FakeEwsServer
(
this
));
srv
->
setDialog
(
dialog
);
QVERIFY
(
srv
->
start
());
...
...
@@ -521,7 +517,6 @@ void UtEwsFakeSrvTest::getStreamingEventsRequest()
bool
callbackCalled
=
false
;
const
FakeEwsServer
::
DialogEntry
::
List
emptyDialog
;
QString
receivedReq
;
QScopedPointer
<
FakeEwsServer
>
srv
(
new
FakeEwsServer
(
this
));
QVERIFY
(
srv
->
start
());
QDateTime
startTime
=
QDateTime
::
currentDateTime
();
...
...
@@ -641,7 +636,6 @@ void UtEwsFakeSrvTest::serverThread()
const
FakeEwsServer
::
DialogEntry
::
List
dialog
=
{
{
QStringLiteral
(
"if (//test1/a = <a />) then (<b/>) else ()"
),
FakeEwsServer
::
DialogEntry
::
ReplyCallback
(),
QStringLiteral
(
"Sample request 1"
)}};
QString
receivedReq
;
FakeEwsServerThread
thread
;
thread
.
start
();
QVERIFY
(
thread
.
waitServerStarted
());
...
...
@@ -666,7 +660,6 @@ void UtEwsFakeSrvTest::delayedContentSize()
const
FakeEwsServer
::
DialogEntry
::
List
dialog
=
{
{
QStringLiteral
(
"if (//test1/a = <a />) then (<b/>) else ()"
),
FakeEwsServer
::
DialogEntry
::
ReplyCallback
(),
QStringLiteral
(
"Sample request 1"
)}};
QString
receivedReq
;
FakeEwsServerThread
thread
;
thread
.
start
();
QVERIFY
(
thread
.
waitServerStarted
());
...
...
@@ -789,7 +782,6 @@ void UtEwsFakeSrvTest::xqueryResultsInCallback()
},
QStringLiteral
(
"Sample request 1"
)}};
QString
receivedReq
;
QScopedPointer
<
FakeEwsServer
>
srv
(
new
FakeEwsServer
(
this
));
srv
->
setDialog
(
dialog
);
QVERIFY
(
srv
->
start
());
...
...
Write
Preview
Supports
Markdown
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