]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetText.cpp
Embedding: merge lyx::EmbeddedFiles to lyx::support::EmbeddedFileList
[lyx.git] / src / insets / InsetText.cpp
index 830a3806262274f2a31ffabe8597fc2905475c4d..9369555c58ea3769342aeb09f148f5999eebffc1 100644 (file)
@@ -55,6 +55,7 @@
 #include <boost/assert.hpp>
 
 using namespace std;
+using namespace lyx::support;
 
 using boost::bind;
 using boost::ref;
@@ -63,8 +64,6 @@ namespace lyx {
 
 using graphics::PreviewLoader;
 
-using support::isStrUnsignedInt;
-
 
 InsetText::InsetText(BufferParams const & bp)
        : drawFrame_(false), frame_color_(Color_insetframe)
@@ -381,7 +380,7 @@ void InsetText::appendParagraphs(Buffer * buffer, ParagraphList & plist)
        ParagraphList::iterator ins = pl.insert(pl.end(), *pit);
        ++pit;
        mergeParagraph(buffer->params(), pl,
-                      std::distance(pl.begin(), ins) - 1);
+                      distance(pl.begin(), ins) - 1);
 
        for_each(pit, plist.end(),
                 bind(&ParagraphList::push_back, ref(pl), _1));