Skip to content

Commit 09b5d9a

Browse files
Simplified easyaccess functions typemaps
1 parent 038e0c3 commit 09b5d9a

File tree

3 files changed

+69
-347
lines changed

3 files changed

+69
-347
lines changed

src/interface/easyaccess.i

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,9 @@ EXV_ENABLE_EASYACCESS_FUNCTION(Exiv2::sensingMethod)
5757
EXV_ENABLE_EASYACCESS_FUNCTION(Exiv2::shutterSpeedValue)
5858
EXV_ENABLE_EASYACCESS_FUNCTION(Exiv2::subjectArea)
5959

60-
// Store data->end() after converting input
61-
%typemap(check) Exiv2::ExifData&
62-
(Exiv2::ExifData::const_iterator _global_end) %{
63-
_global_end = $1->end();
64-
%}
65-
6660
// Convert result from iterator to datum or None
6761
%typemap(out) Exiv2::ExifData::const_iterator %{
68-
if ($1 == _global_end)
62+
if ($1 == arg1->end())
6963
$result = SWIG_Py_Void();
7064
else
7165
$result = SWIG_NewPointerObj(

0 commit comments

Comments
 (0)