]> git.lyx.org Git - lyx.git/blobdiff - src/tex2lyx/Parser.cpp
tex2lyx/text.cpp: cosmetic
[lyx.git] / src / tex2lyx / Parser.cpp
index f1b3514316573c6d8304c579c933820e3ab3f948..3ceda050f5eca577349a8b85c1c9242a7e97a78b 100644 (file)
@@ -307,7 +307,7 @@ string Parser::getFullOpt()
        Arg arg = getFullArg('[', ']');
        if (arg.first)
                return '[' + arg.second + ']';
-       return arg.second;
+       return string();
 }
 
 
@@ -317,14 +317,16 @@ string Parser::getOpt()
        return res.empty() ? string() : '[' + res + ']';
 }
 
+
 string Parser::getFullParentheseArg()
 {
        Arg arg = getFullArg('(', ')');
        if (arg.first)
                return '(' + arg.second + ')';
-       return arg.second;
+       return string();
 }
 
+
 string const Parser::verbatimEnvironment(string const & name)
 {
        if (!good())