]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetCommandParams.cpp
Fix a number of issues that were stopping compilation with MSVC 19.
[features.git] / src / insets / InsetCommandParams.cpp
index 1f7d32110810fe3e18ed6aee8680e75c4dac11d0..727ab5d484d5943e8ff4ec352f56084512ea989c 100644 (file)
@@ -600,7 +600,7 @@ docstring InsetCommandParams::getFirstNonOptParam() const
 {
        ParamInfo::const_iterator it =
                find_if(info_.begin(), info_.end(),
-                       not1(mem_fun_ref(&ParamInfo::ParamData::isOptional)));
+                       [](ParamInfo::ParamData const & d) { return !d.isOptional(); });
        LASSERT(it != info_.end(), return docstring());
        return (*this)[it->name()];
 }