From: Vincent van Ravesteijn Date: Fri, 29 Oct 2010 00:42:40 +0000 (+0000) Subject: Remove the now unused parameter of createDialogStr(); X-Git-Tag: 2.0.0~2201 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=aafe9850429075ec9945584f6b7cdf1892cc4f5c;p=features.git Remove the now unused parameter of createDialogStr(); git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35892 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index 4a455a1485..7ed16911cc 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -1216,7 +1216,7 @@ void InsetMathNest::doDispatch(Cursor & cur, FuncRequest & cmd) string data; if (name == "ref") { InsetMathRef tmp(buffer_, name); - data = tmp.createDialogStr(to_utf8(name)); + data = tmp.createDialogStr(); cur.bv().showDialog(to_utf8(name), data); } else if (name == "mathspace") { cur.bv().showDialog(to_utf8(name)); diff --git a/src/mathed/InsetMathRef.cpp b/src/mathed/InsetMathRef.cpp index 14d3a35e29..4485304a9f 100644 --- a/src/mathed/InsetMathRef.cpp +++ b/src/mathed/InsetMathRef.cpp @@ -74,7 +74,7 @@ void InsetMathRef::doDispatch(Cursor & cur, FuncRequest & cmd) break; case LFUN_INSET_DIALOG_UPDATE: { - string const data = createDialogStr("ref"); + string const data = createDialogStr(); cur.bv().updateDialog("ref", data); break; } @@ -88,7 +88,7 @@ void InsetMathRef::doDispatch(Cursor & cur, FuncRequest & cmd) } if (cmd.button() == mouse_button::button1) { // Eventually trigger dialog with button 3, not 1 - string const data = createDialogStr("ref"); + string const data = createDialogStr(); cur.bv().showDialog("ref", data, this); break; } @@ -187,7 +187,7 @@ void InsetMathRef::updateBuffer(ParIterator const & it, UpdateType /*utype*/) } -string const InsetMathRef::createDialogStr(string const & /*name*/) const +string const InsetMathRef::createDialogStr() const { InsetCommandParams icp(REF_CODE, to_ascii(commandname())); icp["reference"] = asString(cell(0)); diff --git a/src/mathed/InsetMathRef.h b/src/mathed/InsetMathRef.h index 0ee76ac5b7..8011f9452c 100644 --- a/src/mathed/InsetMathRef.h +++ b/src/mathed/InsetMathRef.h @@ -50,7 +50,7 @@ public: /// docbook output int docbook(odocstream & os, OutputParams const &) const; /// generate something that will be understood by the Dialogs. - std::string const createDialogStr(std::string const & name) const; + std::string const createDialogStr() const; struct ref_type_info { ///