From 2e13deb5615b599af0609e1d56bfe29fa31ad665 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 22 Feb 2018 00:23:37 -0500 Subject: [PATCH] Fix bug #10886. --- src/frontends/qt4/GuiThesaurus.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontends/qt4/GuiThesaurus.cpp b/src/frontends/qt4/GuiThesaurus.cpp index 0ebbb4abfe..2bda2485c3 100644 --- a/src/frontends/qt4/GuiThesaurus.cpp +++ b/src/frontends/qt4/GuiThesaurus.cpp @@ -237,15 +237,15 @@ void GuiThesaurus::replaceClicked() } -bool GuiThesaurus::initialiseParams(string const & data) +bool GuiThesaurus::initialiseParams(string const & sdata) { string arg; - string const lang = rsplit(data, arg, ' '); + string const lang = rsplit(sdata, arg, ' '); if (prefixIs(lang, "lang=")) { lang_ = from_utf8(split(lang, '=')); text_ = from_utf8(arg); } else { - text_ = from_utf8(data); + text_ = from_utf8(sdata); if (bufferview()) lang_ = from_ascii( bufferview()->buffer().params().language->lang()); @@ -267,13 +267,13 @@ void GuiThesaurus::replace(docstring const & newstr) * on a particular charpos in a paragraph that is broken on * deletion/change ! */ - docstring const data = + docstring const sdata = replace2string(newstr, text_, true, // case sensitive true, // match word false, // all words true); // forward - dispatch(FuncRequest(LFUN_WORD_REPLACE, data)); + dispatch(FuncRequest(LFUN_WORD_REPLACE, sdata)); }