]> git.lyx.org Git - features.git/commitdiff
Fix GuiInfo dialog.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 15 Sep 2008 14:11:57 +0000 (14:11 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 15 Sep 2008 14:11:57 +0000 (14:11 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26411 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetInfo.cpp

index e99f7afd39d5526a19fe1d3ea1b135979463fe27..3bb08facf77c8634030efaee91ac698d1c8b3f73 100644 (file)
@@ -150,9 +150,7 @@ void InsetInfo::write(ostream & os) const
 bool InsetInfo::validate(docstring const & arg) const
 {
        string type;
-       string name;
-
-       name = trim(split(to_utf8(arg), type, ' '));
+       string const name = trim(split(to_utf8(arg), type, ' '));
        switch (nameTranslator().find(type)) {
        case UNKNOWN_INFO:
                return false;
@@ -172,7 +170,7 @@ bool InsetInfo::validate(docstring const & arg) const
        case TEXTCLASS_INFO:
                return true;
        case BUFFER_INFO:
-               return name_ == "name" || name_ == "path" || name_ == "class";
+               return name == "name" || name == "path" || name == "class";
        }
        return false;
 }