]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalSupport.cpp
* src/paragraph_funcs.cpp (breakParagraph): change parameter 'flag' to
[lyx.git] / src / insets / ExternalSupport.cpp
index e214c3e4f253b128acffb7e14a3c8ca1cf157829..1e58f6774ecfd63c3dd8024c2634059f7144068d 100644 (file)
@@ -37,6 +37,8 @@
 
 #include <boost/filesystem/operations.hpp>
 
+#include <algorithm>
+
 using std::endl;
 using std::string;
 using std::vector;
@@ -325,11 +327,12 @@ void updateExternal(InsetExternalParams const & params,
                                   params.filename, from_format, to_format, el,
                                   Converters::try_default | Converters::try_cache);
 
-       if (!success)
+       if (!success) {
                LYXERR(Debug::EXTERNAL)
                        << "external::updateExternal. "
                        << "Unable to convert from "
                        << from_format << " to " << to_format << endl;
+       }
 
        // return success
 }
@@ -387,7 +390,7 @@ int writeExternal(InsetExternalParams const & params,
        str = substituteOptions(params, str, format);
        // FIXME UNICODE
        os << from_utf8(str);
-       return int(lyx::count(str.begin(), str.end(),'\n'));
+       return int(std::count(str.begin(), str.end(),'\n'));
 }
 
 namespace {