aboutsummaryrefslogtreecommitdiff
path: root/test/visit_archive.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/visit_archive.cxx')
-rw-r--r--test/visit_archive.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/visit_archive.cxx b/test/visit_archive.cxx
index eba715c5..6faf4f3a 100644
--- a/test/visit_archive.cxx
+++ b/test/visit_archive.cxx
@@ -101,8 +101,8 @@ main(int argc, char **argv)
ArchiveFile *file = archive_file_open(plugin, path.c_str(), &error);
if (file != nullptr) {
MyArchiveVisitor visitor;
- archive_file_visit(file, visitor);
- archive_file_close(file);
+ file->Visit(visitor);
+ file->Close();
} else {
fprintf(stderr, "%s\n", error->message);
g_error_free(error);