diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2010-01-21 20:05:54 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2010-01-21 20:05:54 +0100 |
commit | 8e5e6e590687a1cfb5be7da367ac9dd7501260ca (patch) | |
tree | 18772e2348798a4b4dab8282de0e21364e813c42 /src/exiv2wrapper.cpp | |
parent | fa8a416912f3ebc9ddf0f50b56a67dbfcd437a73 (diff) | |
download | pyexiv2-8e5e6e590687a1cfb5be7da367ac9dd7501260ca.tar.gz |
Removed a compatibility workaround.
This version requires libexiv2 >= 0.19 anyway.
Diffstat (limited to 'src/exiv2wrapper.cpp')
-rw-r--r-- | src/exiv2wrapper.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/exiv2wrapper.cpp b/src/exiv2wrapper.cpp index b2a1585..a8f328a 100644 --- a/src/exiv2wrapper.cpp +++ b/src/exiv2wrapper.cpp @@ -734,12 +734,7 @@ void Preview::writeToFile(const std::string& path) const void translateExiv2Error(Exiv2::Error const& error) { // Use the Python 'C' API to set up an exception object - - // Building a C++ string first allows this code to compile with all - // versions of libexiv2 (< 0.13 and >= 0.13), because the way exceptions - // are handled in libexiv2 was changed in 0.13. - const std::string sMessage(error.what()); - const char* message = sMessage.c_str(); + const char* message = error.what(); // The type of the Python exception depends on the error code // Warning: this piece of code should be updated in case the error codes |