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
Graphics
Spectacle
Commits
1d53cd04
Commit
1d53cd04
authored
Aug 18, 2021
by
Laurent Montel
😁
Browse files
Now we can use std::as_const
parent
dbab4969
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/Gui/ExportMenu.cpp
View file @
1d53cd04
...
...
@@ -138,7 +138,7 @@ void ExportMenu::getKipiItems()
KIPI
::
PluginLoader
::
PluginList
pluginList
=
loader
->
pluginList
();
for
(
const
auto
&
pluginInfo
:
qAsC
onst
(
pluginList
))
{
for
(
const
auto
&
pluginInfo
:
std
::
as_c
onst
(
pluginList
))
{
if
(
!
(
pluginInfo
->
shouldLoad
()))
{
continue
;
}
...
...
@@ -163,7 +163,7 @@ void ExportMenu::getKipiItems()
}
}
for
(
auto
action
:
qAsC
onst
(
exportActions
))
{
for
(
auto
action
:
std
::
as_c
onst
(
exportActions
))
{
mKipiMenu
->
addAction
(
action
);
}
}
...
...
src/Platforms/PlatformKWinWayland2.cpp
View file @
1d53cd04
...
...
@@ -212,7 +212,7 @@ void ScreenShotSourceMeta2::handleSourceFinished()
QVector
<
QImage
>
results
;
results
.
reserve
(
m_sources
.
count
());
for
(
const
ScreenShotSource2
*
source
:
qAsC
onst
(
m_sources
))
{
for
(
const
ScreenShotSource2
*
source
:
std
::
as_c
onst
(
m_sources
))
{
results
.
append
(
source
->
result
());
}
...
...
src/QuickEditor/QuickEditor.cpp
View file @
1d53cd04
...
...
@@ -840,7 +840,7 @@ void QuickEditor::drawDragHandles(QPainter &painter)
QPainterPath
path
;
// add handles to the path
for
(
QPointF
handlePosition
:
qAsC
onst
(
mHandlePositions
))
{
for
(
QPointF
handlePosition
:
std
::
as_c
onst
(
mHandlePositions
))
{
path
.
addEllipse
(
handlePosition
,
mHandleRadius
,
mHandleRadius
);
}
...
...
Write
Preview
Markdown
is supported
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