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
ebc39c53
Commit
ebc39c53
authored
Oct 26, 2020
by
Shashwat Jolly
Browse files
Add const to relevant variables
parent
bbfadc71
Pipeline
#38750
canceled with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/etesync/entriesfetchjob.cpp
View file @
ebc39c53
...
...
@@ -67,7 +67,7 @@ void EntriesFetchJob::fetchEntries()
qCDebug
(
ETESYNC_LOG
)
<<
"Type:"
<<
type
;
QString
sToken
=
mCollection
.
remoteRevision
();
bool
done
=
0
;
bool
done
=
false
;
EtebaseCollectionManagerPtr
collectionManager
(
etebase_account_get_collection_manager
(
account
));
EtebaseItemManagerPtr
itemManager
(
etebase_collection_manager_get_item_manager
(
collectionManager
.
get
(),
mEtesyncCollection
.
get
()));
...
...
resources/etesync/etesyncresource.cpp
View file @
ebc39c53
...
...
@@ -159,12 +159,12 @@ void EteSyncResource::slotCollectionsRetrieved(KJob *job)
qCDebug
(
ETESYNC_LOG
)
<<
"slotCollectionsRetrieved()"
;
QString
sToken
=
qobject_cast
<
JournalsFetchJob
*>
(
job
)
->
syncToken
();
const
QString
sToken
=
qobject_cast
<
JournalsFetchJob
*>
(
job
)
->
syncToken
();
mRootCollection
.
setRemoteRevision
(
sToken
);
Collection
::
List
collections
=
{
mRootCollection
};
collections
.
append
(
qobject_cast
<
JournalsFetchJob
*>
(
job
)
->
collections
());
Collection
::
List
removedCollections
=
qobject_cast
<
JournalsFetchJob
*>
(
job
)
->
removedCollections
();
const
Collection
::
List
removedCollections
=
qobject_cast
<
JournalsFetchJob
*>
(
job
)
->
removedCollections
();
collectionsRetrievedIncremental
(
collections
,
removedCollections
);
...
...
@@ -173,7 +173,7 @@ void EteSyncResource::slotCollectionsRetrieved(KJob *job)
qCDebug
(
ETESYNC_LOG
)
<<
"Collections retrieval done"
;
}
bool
EteSyncResource
::
handleError
(
const
int
errorCode
,
QString
errorMessage
)
bool
EteSyncResource
::
handleError
(
const
int
errorCode
,
const
QString
&
errorMessage
)
{
qCDebug
(
ETESYNC_LOG
)
<<
"handleError"
<<
errorCode
<<
errorMessage
;
switch
(
errorCode
)
{
...
...
resources/etesync/etesyncresource.h
View file @
ebc39c53
...
...
@@ -51,7 +51,7 @@ protected:
QString
baseDirectoryPath
()
const
;
bool
handleError
();
bool
handleError
(
const
int
errorCode
,
QString
errorMessage
);
bool
handleError
(
const
int
errorCode
,
const
QString
&
errorMessage
);
bool
credentialsRequired
();
private
Q_SLOTS
:
...
...
resources/etesync/journalsfetchjob.cpp
View file @
ebc39c53
...
...
@@ -57,7 +57,7 @@ void JournalsFetchJob::fetchJournals()
}
mSyncToken
=
mResourceCollection
.
remoteRevision
();
bool
done
=
0
;
bool
done
=
false
;
EtebaseCollectionManagerPtr
collectionManager
(
etebase_account_get_collection_manager
(
account
));
while
(
!
done
)
{
...
...
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