Skip to content

Commit

Permalink
[lib] change AutoPtr to UniquePtr
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoHsiao1 committed Jan 23, 2024
1 parent 89b3a87 commit 77ac478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyexiv2/lib/exiv2api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class Image{
// The Exif specification allows for duplicate tags with the same key, although this is rare
else if (typeName == "array")
{
Exiv2::Value::AutoPtr value = Exiv2::Value::create(Exiv2::asciiString);
Exiv2::Value::UniquePtr value = Exiv2::Value::create(Exiv2::asciiString);
for (auto item: line[1]){
std::string item_str = py::bytes(py::str(item).attr("encode")(encoding));
value->read(item_str);
Expand Down

0 comments on commit 77ac478

Please sign in to comment.