diff --git a/src/frontends/qt4/CustomizedWidgets.cpp b/src/frontends/qt4/CustomizedWidgets.cpp index dd87c84cb0..b6dc73faf3 100644 --- a/src/frontends/qt4/CustomizedWidgets.cpp +++ b/src/frontends/qt4/CustomizedWidgets.cpp @@ -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; } diff --git a/src/frontends/qt4/CustomizedWidgets.h b/src/frontends/qt4/CustomizedWidgets.h index 0741a64e8a..6104d30d8b 100644 --- a/src/frontends/qt4/CustomizedWidgets.h +++ b/src/frontends/qt4/CustomizedWidgets.h @@ -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);