]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/epstools.cpp
Simplify b3fe9cb7049da
[lyx.git] / src / graphics / epstools.cpp
index d5674ba7d18205c168bb05318e9165ba34469bc6..5e3dc6c0a95dfb041c0a8fdab2610afc7b4b249a 100644 (file)
@@ -29,7 +29,8 @@
 #include "support/docstream.h"
 #include "support/filetools.h"
 #include "support/FileName.h"
-#include "support/regex.h"
+
+#include <regex>
 
 using namespace std;
 using namespace lyx::support;
@@ -58,13 +59,13 @@ string const readBB_from_PSFile(FileName const & file)
                return string();
        }
 
-       static lyx::regex bbox_re("^%%BoundingBox:\\s*([-]*[[:digit:]]+)"
+       static regex bbox_re("^%%BoundingBox:\\s*([-]*[[:digit:]]+)"
                "\\s+([-]*[[:digit:]]+)\\s+([-]*[[:digit:]]+)\\s+([-]*[[:digit:]]+)");
        ifstream is(file_.toFilesystemEncoding().c_str());
        while (is) {
                string s;
                getline(is,s);
-               lyx::smatch what;
+               smatch what;
                if (regex_match(s, what, bbox_re)) {
                        // Our callers expect the tokens in the string
                        // separated by single spaces.