]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
Refactor InsetQuotes.h enums
[lyx.git] / src / output_latex.cpp
index f690134a3c58eb97d638855f1c2bea8b10bf2682..8f8459ffa724baa01dff408732f284dc3d956403 100644 (file)
@@ -19,8 +19,6 @@
 #include "Font.h"
 #include "InsetList.h"
 #include "Language.h"
-#include "LaTeXFeatures.h"
-#include "Layout.h"
 #include "LyXRC.h"
 #include "OutputParams.h"
 #include "Paragraph.h"
@@ -37,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"
 
@@ -602,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()) {