]> git.lyx.org Git - features.git/commitdiff
Remove the now unused parameter of createDialogStr();
authorVincent van Ravesteijn <vfr@lyx.org>
Fri, 29 Oct 2010 00:42:40 +0000 (00:42 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Fri, 29 Oct 2010 00:42:40 +0000 (00:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35892 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/InsetMathNest.cpp
src/mathed/InsetMathRef.cpp
src/mathed/InsetMathRef.h

index 4a455a1485cd242ebf5cc29bcc17546f5e0cf892..7ed16911ccfac179bfca6319b557bdcf89827a21 100644 (file)
@@ -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));
index 14d3a35e2942a7b717a9af465d5f0df4a5fa2e1e..4485304a9fc36fa48a7dad263cb35b9e8ddde545 100644 (file)
@@ -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));
index 0ee76ac5b76a587c0db6b346fefc2c96102f01ee..8011f9452cafed71cc3afe435891d573f5b18541 100644 (file)
@@ -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 {
                ///