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
Network
KIO GDrive
Commits
062a87ab
Commit
062a87ab
authored
Feb 09, 2016
by
Elvis Angelaccio
Browse files
Use foreach on Qt containers
parent
39a2377f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/gdrivehelper.cpp
View file @
062a87ab
...
...
@@ -114,7 +114,7 @@ QUrl GDriveHelper::convertFromGDocs(KGAPI2::Drive::FilePtr &file)
}
const
auto
exportLinks
=
file
->
exportLinks
();
for
(
const
QString
&
targetMimeType
:
GDriveHelper
::
ConversionMap
[
originalMimeType
])
{
Q_FOREACH
(
const
QString
&
targetMimeType
,
GDriveHelper
::
ConversionMap
[
originalMimeType
])
{
if
(
exportLinks
.
contains
(
targetMimeType
))
{
file
->
setMimeType
(
targetMimeType
);
file
->
setTitle
(
file
->
title
()
+
GDriveHelper
::
ExtensionsMap
[
targetMimeType
]);
...
...
src/kio_gdrive.cpp
View file @
062a87ab
...
...
@@ -261,7 +261,7 @@ void KIOGDrive::listAccounts()
return
;
}
for
(
const
QString
&
account
:
accounts
)
{
Q_FOREACH
(
const
QString
&
account
,
accounts
)
{
const
KIO
::
UDSEntry
entry
=
AccountManager
::
accountToUDSEntry
(
account
);
listEntry
(
entry
);
}
...
...
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