Verified Commit 0c404c9e authored by Linus Jahn's avatar Linus Jahn 🔌
Browse files

Pass QSize by value

QSize has 64bit (2x int), so it's not better to use a reference.
parent 379a254c
Pipeline #83337 passed with stage
in 2 minutes and 39 seconds
......@@ -86,7 +86,7 @@ QSize Kaidan::applicationWindowSize() const
return m_caches->settings->windowSize();
}
void Kaidan::storeApplicationWindowSize(const QSize &size) const
void Kaidan::storeApplicationWindowSize(QSize size) const
{
m_caches->settings->setWindowSize(size);
}
......
......@@ -101,7 +101,7 @@ public:
*
* @param size size of the application window
*/
Q_INVOKABLE void storeApplicationWindowSize(const QSize &size) const;
Q_INVOKABLE void storeApplicationWindowSize(QSize size) const;
/**
* Connects to the XMPP server and logs in to it.
......
......@@ -172,7 +172,7 @@ QSize Settings::windowSize() const
return m_settings.value(QStringLiteral(KAIDAN_SETTINGS_WINDOW_SIZE)).toSize();
}
void Settings::setWindowSize(const QSize size)
void Settings::setWindowSize(QSize size)
{
m_settings.setValue(QStringLiteral(KAIDAN_SETTINGS_WINDOW_SIZE), size);
emit windowSizeChanged();
......
......@@ -100,7 +100,7 @@ public:
void setFavoriteEmojis(const QStringList &emoji);
QSize windowSize() const;
void setWindowSize(const QSize size);
void setWindowSize(QSize size);
void remove(const QStringList &keys);
......
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