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
KDE PIM Runtime
Commits
75d48462
Commit
75d48462
authored
Dec 06, 2021
by
Laurent Montel
Browse files
Fix some cppcheck warnings
parent
367eed99
Pipeline
#105968
passed with stage
in 7 minutes and 53 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
agents/maildispatcher/storeresultjob.cpp
View file @
75d48462
...
...
@@ -19,10 +19,10 @@ using namespace MailTransport;
StoreResultJob
::
StoreResultJob
(
const
Item
&
item
,
bool
success
,
const
QString
&
message
,
QObject
*
parent
)
:
TransactionSequence
(
parent
)
,
mItem
(
item
)
,
mSuccess
(
success
)
,
mMessage
(
message
)
{
mItem
=
item
;
mSuccess
=
success
;
mMessage
=
message
;
}
StoreResultJob
::~
StoreResultJob
()
=
default
;
...
...
migration/gid/main.cpp
View file @
75d48462
...
...
@@ -62,7 +62,7 @@ int main(int argc, char **argv)
}
auto
migrator
=
new
GidMigrator
(
mimeType
);
if
(
infoDialog
&&
migrator
)
{
if
(
infoDialog
)
{
infoDialog
->
migratorAdded
();
QObject
::
connect
(
migrator
,
&
MigratorBase
::
message
,
infoDialog
,
qOverload
<
MigratorBase
::
MessageType
,
const
QString
&>
(
&
InfoDialog
::
message
));
QObject
::
connect
(
migrator
,
&
QObject
::
destroyed
,
infoDialog
,
&
InfoDialog
::
migratorDone
);
...
...
resources/dav/resource/configdialog.cpp
View file @
75d48462
...
...
@@ -168,8 +168,8 @@ void ConfigDialog::onSearchButtonClicked()
if
(
result
==
QDialog
::
Accepted
&&
!
dlg
.
isNull
())
{
const
QStringList
results
=
dlg
->
selection
();
for
(
const
QString
&
result
:
results
)
{
const
QStringList
split
=
result
.
split
(
QLatin1Char
(
'|'
));
for
(
const
QString
&
result
Str
:
results
)
{
const
QStringList
split
=
result
Str
.
split
(
QLatin1Char
(
'|'
));
KDAV
::
Protocol
protocol
=
KDAV
::
ProtocolInfo
::
protocolByName
(
split
.
at
(
0
));
if
(
!
Settings
::
self
()
->
urlConfiguration
(
protocol
,
split
.
at
(
1
)))
{
auto
urlConfig
=
new
Settings
::
UrlConfiguration
();
...
...
resources/ews/ewsclient/ewsfindfolderrequest.cpp
View file @
75d48462
...
...
@@ -153,8 +153,8 @@ bool EwsFindFolderResponse::parseRootFolder(QXmlStreamReader &reader)
EwsFolder
*
folder
=
readFolder
(
reader
);
reader
.
readNextStartElement
();
if
(
folder
)
{
bool
ok
;
int
childCount
=
(
*
folder
)[
EwsFolderFieldChildFolderCount
].
toUInt
(
&
ok
);
bool
ok
Int
;
int
childCount
=
(
*
folder
)[
EwsFolderFieldChildFolderCount
].
toUInt
(
&
ok
Int
);
if
(
childCount
>
0
)
{
unsigned
readCount
=
readChildFolders
(
*
folder
,
childCount
,
reader
);
if
(
readCount
==
0
)
{
...
...
resources/ews/ewsclient/ewsmovefolderrequest.h
View file @
75d48462
...
...
@@ -28,7 +28,7 @@ public:
}
protected:
Response
(
QXmlStreamReader
&
reader
);
explicit
Response
(
QXmlStreamReader
&
reader
);
EwsId
mId
;
...
...
resources/imap/autotests/testretrievecollectionmetadatatask.cpp
View file @
75d48462
...
...
@@ -370,7 +370,7 @@ private Q_SLOTS:
}
if
(
!
expectedRoots
.
isEmpty
())
{
int
i
=
expectedRoots
.
indexOf
(
"INBOX"
);
int
i
ndex
=
expectedRoots
.
indexOf
(
"INBOX"
);
QVERIFY
(
collection
.
hasAttribute
<
Akonadi
::
ImapQuotaAttribute
>
());
QCOMPARE
(
collection
.
attribute
<
Akonadi
::
ImapQuotaAttribute
>
()
->
roots
(),
expectedRoots
);
...
...
@@ -378,9 +378,9 @@ private Q_SLOTS:
QCOMPARE
(
collection
.
attribute
<
Akonadi
::
ImapQuotaAttribute
>
()
->
usages
(),
expectedUsages
);
QVERIFY
(
collection
.
hasAttribute
<
Akonadi
::
CollectionQuotaAttribute
>
());
if
(
i
!=
-
1
)
{
QCOMPARE
(
collection
.
attribute
<
Akonadi
::
CollectionQuotaAttribute
>
()
->
currentValue
(),
expectedUsages
.
at
(
i
)[
"STORAGE"
]
*
1024
);
QCOMPARE
(
collection
.
attribute
<
Akonadi
::
CollectionQuotaAttribute
>
()
->
maximumValue
(),
expectedLimits
.
at
(
i
)[
"STORAGE"
]
*
1024
);
if
(
i
ndex
!=
-
1
)
{
QCOMPARE
(
collection
.
attribute
<
Akonadi
::
CollectionQuotaAttribute
>
()
->
currentValue
(),
expectedUsages
.
at
(
i
ndex
)[
"STORAGE"
]
*
1024
);
QCOMPARE
(
collection
.
attribute
<
Akonadi
::
CollectionQuotaAttribute
>
()
->
maximumValue
(),
expectedLimits
.
at
(
i
ndex
)[
"STORAGE"
]
*
1024
);
}
else
{
QCOMPARE
(
collection
.
attribute
<
Akonadi
::
CollectionQuotaAttribute
>
()
->
currentValue
(),
expectedUsages
.
first
()[
"STORAGE"
]
*
1024
);
QCOMPARE
(
collection
.
attribute
<
Akonadi
::
CollectionQuotaAttribute
>
()
->
maximumValue
(),
expectedLimits
.
first
()[
"STORAGE"
]
*
1024
);
...
...
resources/kolab/pimkolab/kolabformat/v2helpers.cpp
View file @
75d48462
...
...
@@ -99,7 +99,6 @@ KContacts::Addressee addresseeFromKolab(const QByteArray &xmlData, const KMime::
const
QString
&
soundAttachmentName
=
contact
.
soundAttachmentName
();
if
(
!
soundAttachmentName
.
isEmpty
())
{
QByteArray
type
;
KMime
::
Content
*
content
=
Mime
::
findContentByName
(
data
,
soundAttachmentName
/*"sound"*/
,
type
);
if
(
content
)
{
const
QByteArray
&
sData
=
content
->
decodedContent
();
...
...
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