Do not pass objects by value

Coverity issue 23372.
This commit is contained in:
Jean-Marc 2015-09-12 19:22:51 +02:00
parent f74de776ef
commit 92d5e7c11b
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ KeySequence const ShortcutWidget::getKeySequence() const
}
void ShortcutWidget::setKeySequence(lyx::KeySequence const s)
void ShortcutWidget::setKeySequence(lyx::KeySequence const & s)
{
keysequence_ = s;
}

View File

@ -33,7 +33,7 @@ public:
void reset();
bool eventFilter(QObject*, QEvent* e );
KeySequence const getKeySequence() const;
void setKeySequence(lyx::KeySequence const s);
void setKeySequence(lyx::KeySequence const & s);
void removeFromSequence();
protected Q_SLOTS:
bool event(QEvent* e);