[LyX/master] Const

Richard Kimberly Heck rikiheck at lyx.org
Sat Oct 10 20:44:55 UTC 2020


commit 2dc42774529ed213b2e0fff42a77de7043274a66
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Sat Oct 10 17:12:43 2020 -0400

    Const
---
 src/frontends/qt/GuiPrefs.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp
index 01d7d9b..093efe0 100644
--- a/src/frontends/qt/GuiPrefs.cpp
+++ b/src/frontends/qt/GuiPrefs.cpp
@@ -3147,7 +3147,7 @@ void PrefShortcuts::removeShortcut()
 	for (auto & item : items) {
 		string shortcut = fromqstr(item->data(1, Qt::UserRole).toString());
 		string lfun = fromqstr(item->text(0));
-		FuncRequest func = lyxaction.lookupFunc(lfun);
+		FuncRequest const func = lyxaction.lookupFunc(lfun);
 
 		switch (itemType(*item)) {
 		case KeyMap::System: {
@@ -3203,7 +3203,7 @@ void PrefShortcuts::deactivateShortcuts(QList<QTreeWidgetItem*> const & items)
 	for (auto item : items) {
 		string shortcut = fromqstr(item->data(1, Qt::UserRole).toString());
 		string lfun = fromqstr(item->text(0));
-		FuncRequest func = lyxaction.lookupFunc(lfun);
+		FuncRequest const func = lyxaction.lookupFunc(lfun);
 
 		switch (itemType(*item)) {
 		case KeyMap::System:
@@ -3376,7 +3376,7 @@ bool PrefShortcuts::validateNewShortcut(FuncRequest const & func,
 void PrefShortcuts::shortcutOkPressed()
 {
 	QString const new_lfun = shortcut_->lfunLE->text();
-	FuncRequest func = lyxaction.lookupFunc(fromqstr(new_lfun));
+	FuncRequest const func = lyxaction.lookupFunc(fromqstr(new_lfun));
 	KeySequence k = shortcut_->shortcutWG->getKeySequence();
 
 	// save_lfun_ contains the text of the lfun to modify, if the user clicked


More information about the lyx-cvs mailing list