]> git.lyx.org Git - features.git/commitdiff
Comments mostly.
authorRichard Heck <rgheck@comcast.net>
Thu, 28 Oct 2010 16:28:57 +0000 (16:28 +0000)
committerRichard Heck <rgheck@comcast.net>
Thu, 28 Oct 2010 16:28:57 +0000 (16:28 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35885 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCommand.cpp
src/insets/InsetCommand.h

index feed4dbe4beaf431477437a0550b22ff767a6c9c..9cebc11942527dec8d13ae61eb9e08e52e3e0d81 100644 (file)
@@ -223,20 +223,20 @@ bool InsetCommand::showInsetDialog(BufferView * bv) const
 
 
 // FIXME This could take an InsetCode instead of a string
-bool InsetCommand::string2params(string const & name, string const & in,
+bool InsetCommand::string2params(string const & name, string const & data,
        InsetCommandParams & params)
 {
        params.clear();
-       if (in.empty())
+       if (data.empty())
                return false;
        // This happens when inset-insert is called without argument except for the
        // inset type; ex:
        // "inset-insert toc"
-       if (in == name)
+       if (data == name)
                return true;
-       istringstream data(in);
+       istringstream dstream(data);
        Lexer lex;
-       lex.setStream(data);
+       lex.setStream(dstream);
        lex.setContext("InsetCommand::string2params");
        lex >> name.c_str(); // check for name
        lex >> "CommandInset";
index 0007c5bd19da825f8332d1c32578f4ab8fa844a4..5c9a9d6190b9bd704cf232fa1492365b2a8d8dad 100644 (file)
@@ -47,8 +47,9 @@ public:
        InsetCommand const * asInsetCommand() const { return this; }
 
 
-       /// returns true if params are successfully read
-       static bool string2params(std::string const &, std::string const & name,
+       /// \return true if params are successfully read
+       static bool string2params(std::string const & name, 
+                                       std::string const & data,
                                  InsetCommandParams &);
        ///
        static std::string params2string(std::string const & name,