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
fdc00bcc
Commit
fdc00bcc
authored
Feb 04, 2021
by
Laurent Montel
😁
Browse files
Use auto vs auto * where it's possible
parent
c3b6331b
Pipeline
#49675
failed with stage
in 27 minutes and 18 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/imap/imapresourcebase.cpp
View file @
fdc00bcc
...
...
@@ -579,7 +579,7 @@ void ImapResourceBase::startIdle()
scope
.
setResource
(
identifier
());
scope
.
setAncestorRetrieval
(
Akonadi
::
CollectionFetchScope
::
All
);
auto
*
fetch
=
new
Akonadi
::
CollectionFetchJob
(
c
,
Akonadi
::
CollectionFetchJob
::
Base
,
this
);
auto
fetch
=
new
Akonadi
::
CollectionFetchJob
(
c
,
Akonadi
::
CollectionFetchJob
::
Base
,
this
);
fetch
->
setFetchScope
(
scope
);
connect
(
fetch
,
&
KJob
::
result
,
this
,
&
ImapResourceBase
::
onIdleCollectionFetchDone
);
...
...
@@ -614,7 +614,7 @@ void ImapResourceBase::requestManualExpunge(qint64 collectionId)
scope
.
setAncestorRetrieval
(
Akonadi
::
CollectionFetchScope
::
All
);
scope
.
setListFilter
(
CollectionFetchScope
::
NoFilter
);
auto
*
fetch
=
new
Akonadi
::
CollectionFetchJob
(
collection
,
Akonadi
::
CollectionFetchJob
::
Base
,
this
);
auto
fetch
=
new
Akonadi
::
CollectionFetchJob
(
collection
,
Akonadi
::
CollectionFetchJob
::
Base
,
this
);
fetch
->
setFetchScope
(
scope
);
connect
(
fetch
,
&
KJob
::
result
,
this
,
&
ImapResourceBase
::
onExpungeCollectionFetchDone
);
...
...
resources/imap/settings.cpp
View file @
fdc00bcc
...
...
@@ -276,7 +276,7 @@ void Settings::renameRootCollection(const QString &newName)
{
Akonadi
::
Collection
rootCollection
;
rootCollection
.
setRemoteId
(
rootRemoteId
());
auto
*
fetchJob
=
new
Akonadi
::
CollectionFetchJob
(
rootCollection
,
Akonadi
::
CollectionFetchJob
::
Base
);
auto
fetchJob
=
new
Akonadi
::
CollectionFetchJob
(
rootCollection
,
Akonadi
::
CollectionFetchJob
::
Base
);
fetchJob
->
setProperty
(
"collectionName"
,
newName
);
connect
(
fetchJob
,
&
KJob
::
result
,
this
,
&
Settings
::
onRootCollectionFetched
);
}
...
...
resources/kolab/pimkolab/icalendar/imip.cpp
View file @
fdc00bcc
...
...
@@ -69,7 +69,7 @@ KMime::Message::Ptr createMessage(const QString &from,
message
->
contentType
()
->
setParameter
(
QStringLiteral
(
"method"
),
QStringLiteral
(
"request"
));
if
(
!
attachment
.
isEmpty
())
{
auto
*
disposition
=
new
KMime
::
Headers
::
ContentDisposition
();
auto
disposition
=
new
KMime
::
Headers
::
ContentDisposition
();
disposition
->
setDisposition
(
KMime
::
Headers
::
CDinline
);
message
->
setHeader
(
disposition
);
message
->
contentTransferEncoding
()
->
setEncoding
(
KMime
::
Headers
::
CEquPr
);
...
...
@@ -87,7 +87,7 @@ KMime::Message::Ptr createMessage(const QString &from,
// Set the first multipart, the body message.
auto
bodyMessage
=
new
KMime
::
Content
;
auto
*
bodyDisposition
=
new
KMime
::
Headers
::
ContentDisposition
();
auto
bodyDisposition
=
new
KMime
::
Headers
::
ContentDisposition
();
bodyDisposition
->
setDisposition
(
KMime
::
Headers
::
CDinline
);
bodyMessage
->
contentType
()
->
setMimeType
(
"text/plain"
);
bodyMessage
->
contentType
()
->
setCharset
(
"utf-8"
);
...
...
@@ -98,7 +98,7 @@ KMime::Message::Ptr createMessage(const QString &from,
// Set the sedcond multipart, the attachment.
if
(
!
attachment
.
isEmpty
())
{
auto
attachMessage
=
new
KMime
::
Content
;
auto
*
attachDisposition
=
new
KMime
::
Headers
::
ContentDisposition
();
auto
attachDisposition
=
new
KMime
::
Headers
::
ContentDisposition
();
attachDisposition
->
setDisposition
(
KMime
::
Headers
::
CDattachment
);
attachMessage
->
contentType
()
->
setMimeType
(
"text/calendar"
);
attachMessage
->
contentType
()
->
setCharset
(
"utf-8"
);
...
...
resources/mbox/compactpage.cpp
View file @
fdc00bcc
...
...
@@ -34,7 +34,7 @@ void CompactPage::checkCollectionId()
if
(
!
mCollectionId
.
isEmpty
())
{
Collection
collection
;
collection
.
setRemoteId
(
mCollectionId
);
auto
*
fetchJob
=
new
CollectionFetchJob
(
collection
,
CollectionFetchJob
::
Base
);
auto
fetchJob
=
new
CollectionFetchJob
(
collection
,
CollectionFetchJob
::
Base
);
connect
(
fetchJob
,
&
CollectionFetchJob
::
result
,
this
,
&
CompactPage
::
onCollectionFetchCheck
);
}
...
...
@@ -46,7 +46,7 @@ void CompactPage::compact()
Collection
collection
;
collection
.
setRemoteId
(
mCollectionId
);
auto
*
fetchJob
=
new
CollectionFetchJob
(
collection
,
CollectionFetchJob
::
Base
);
auto
fetchJob
=
new
CollectionFetchJob
(
collection
,
CollectionFetchJob
::
Base
);
connect
(
fetchJob
,
&
CollectionFetchJob
::
result
,
this
,
&
CompactPage
::
onCollectionFetchCompact
);
}
...
...
resources/pop3/pop3resource.cpp
View file @
fdc00bcc
...
...
@@ -414,7 +414,7 @@ void POP3Resource::targetCollectionFetchJobFinished(KJob *job)
}
}
mTestLocalInbox
=
false
;
auto
*
fetchJob
=
qobject_cast
<
Akonadi
::
CollectionFetchJob
*>
(
job
);
auto
fetchJob
=
qobject_cast
<
Akonadi
::
CollectionFetchJob
*>
(
job
);
Q_ASSERT
(
fetchJob
);
Q_ASSERT
(
fetchJob
->
collections
().
size
()
<=
1
);
...
...
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