]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCommandParams.cpp
move GuiCommand into hedar of its own. InsetCommandParams.h is expensive
[features.git] / src / insets / InsetCommandParams.cpp
index 8dd3bceb96737d6460ba3992ed5143a5846050a5..fae7ce61e45fbfbf53ff24b0bd938eb59bd25eb8 100644 (file)
@@ -395,7 +395,7 @@ docstring InsetCommandParams::getFirstNonOptParam() const
                find_if(info_.begin(), info_.end(), 
                        not1(mem_fun_ref(&ParamInfo::ParamData::isOptional)));
        if (it == info_.end())
-               LASSERT(false, /**/);
+               LASSERT(false, return docstring());
        return (*this)[it->name()];
 }
 
@@ -403,7 +403,7 @@ docstring InsetCommandParams::getFirstNonOptParam() const
 docstring const & InsetCommandParams::operator[](string const & name) const
 {
        static const docstring dummy; //so we don't return a ref to temporary
-       LASSERT(info_.hasParam(name), /**/);
+       LASSERT(info_.hasParam(name), return dummy);
        ParamMap::const_iterator data = params_.find(name);
        if (data == params_.end() || data->second.empty())
                return dummy;