diff options
Diffstat (limited to 'src/mbgl/util/io.hpp')
-rw-r--r-- | src/mbgl/util/io.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/util/io.hpp b/src/mbgl/util/io.hpp index 847271acf0..e628e82124 100644 --- a/src/mbgl/util/io.hpp +++ b/src/mbgl/util/io.hpp @@ -9,8 +9,7 @@ namespace mbgl { namespace util { struct IOException : std::runtime_error { - IOException(int err, const char* msg) : std::runtime_error(msg), code(err) { - } + IOException(int err, const std::string& msg); const int code = 0; }; @@ -19,6 +18,7 @@ std::string read_file(const std::string &filename); optional<std::string> readFile(const std::string &filename); void deleteFile(const std::string& filename); +void copyFile(const std::string& destination, const std::string& source); } // namespace util } // namespace mbgl |