mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +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;
|
keysequence_ = s;
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ public:
|
|||||||
void reset();
|
void reset();
|
||||||
bool eventFilter(QObject*, QEvent* e );
|
bool eventFilter(QObject*, QEvent* e );
|
||||||
KeySequence const getKeySequence() const;
|
KeySequence const getKeySequence() const;
|
||||||
void setKeySequence(lyx::KeySequence const s);
|
void setKeySequence(lyx::KeySequence const & s);
|
||||||
void removeFromSequence();
|
void removeFromSequence();
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
bool event(QEvent* e);
|
bool event(QEvent* e);
|
||||||
|
Loading…
Reference in New Issue
Block a user