Commit 8ad65ce3 authored by Laurent Montel's avatar Laurent Montel 😁

Consti'fy

parent 540a4b6f
......@@ -43,7 +43,7 @@ ScreenPtr WaylandScreen::toKScreenScreen(KScreen::ConfigPtr &parent) const
return kscreenScreen;
}
void WaylandScreen::setOutputs(const QList<WaylandOutput*> outputs)
void WaylandScreen::setOutputs(const QList<WaylandOutput*> &outputs)
{
m_outputCount = outputs.count();
QRect r;
......
......@@ -41,7 +41,7 @@ public:
KScreen::ScreenPtr toKScreenScreen(KScreen::ConfigPtr &parent) const;
void updateKScreenScreen(KScreen::ScreenPtr &screen) const;
void setOutputs(const QList<WaylandOutput*> outputs);
void setOutputs(const QList<WaylandOutput*> &outputs);
void setSize(const QSize &size);
void setOutputCount(int count);
......
......@@ -330,7 +330,7 @@ void Config::removeOutput(int outputId)
d->removeOutput(d->outputs.find(outputId));
}
void Config::setOutputs(OutputList outputs)
void Config::setOutputs(const OutputList &outputs)
{
for (auto iter = d->outputs.begin(), end = d->outputs.end(); iter != end; ) {
iter = d->removeOutput(iter);
......
......@@ -137,7 +137,7 @@ class KSCREEN_EXPORT Config : public QObject
void setPrimaryOutput(const OutputPtr &output);
void addOutput(const OutputPtr &output);
void removeOutput(int outputId);
void setOutputs(OutputList outputs);
void setOutputs(const OutputList &outputs);
bool isValid() const;
void setValid(bool valid);
......
......@@ -462,7 +462,7 @@ QList<int> Output::clones() const
return d->clones;
}
void Output::setClones(QList<int> outputlist)
void Output::setClones(const QList<int> &outputlist)
{
if (d->clones == outputlist) {
return;
......
......@@ -178,7 +178,7 @@ class KSCREEN_EXPORT Output : public QObject
void setPrimary(bool primary);
QList<int> clones() const;
void setClones(QList<int> outputlist);
void setClones(const QList<int> &outputlist);
void setEdid(const QByteArray &rawData);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment