]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
Refactor InsetQuotes.h enums
[lyx.git] / src / output_latex.cpp
index ea474dfa6e841aa5467ef2bd1106f0f90b51024a..8f8459ffa724baa01dff408732f284dc3d956403 100644 (file)
@@ -35,7 +35,6 @@
 #include "support/convert.h"
 #include "support/debug.h"
 #include "support/lstrings.h"
-#include "support/lyxalgo.h"
 #include "support/textutils.h"
 #include "support/gettext.h"
 
@@ -600,8 +599,7 @@ void addArgInsets(Paragraph const & par, string const & prefix,
                string const name = prefix.empty() ?
                        arg->name() : split(arg->name(), ':');
                size_t const nr = convert<size_t>(name);
-               if (ilist.find(nr) == ilist.end())
-                       ilist[nr] = arg;
+               ilist.insert({nr, arg});
                Layout::LaTeXArgMap::const_iterator const lit =
                        latexargs.find(arg->name());
                if (lit != latexargs.end()) {