mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
Do not pass objects by value
Coverity issue 23372.
This commit is contained in:
parent
f74de776ef
commit
92d5e7c11b
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user