aboutsummaryrefslogtreecommitdiffstats
path: root/libtests
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-08 00:49:30 +0100
committerJay Berkenbilt <ejb@ql.org>2021-02-08 12:49:56 +0100
commitbfbeec5497c04e58e25fa207773ece1d29b67000 (patch)
treef81d3e8856f51130d4bb31f6e66de445f8f859fe /libtests
parent553ac7f353c7043806ec0de70d8630f5cd0a7bb8 (diff)
downloadqpdf-bfbeec5497c04e58e25fa207773ece1d29b67000.tar.zst
Make newly created name/number trees indirect objects
Diffstat (limited to 'libtests')
-rw-r--r--libtests/qutil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libtests/qutil.cc b/libtests/qutil.cc
index bc12a6ea..94454374 100644
--- a/libtests/qutil.cc
+++ b/libtests/qutil.cc
@@ -487,7 +487,7 @@ void read_from_file_test()
Pl_Buffer b2("buffer");
// QUtil::file_provider also exercises QUtil::pipe_file
QUtil::file_provider("other-file")(&b2);
- auto buf2 = b2.getBuffer();
+ PointerHolder<Buffer> buf2 = b2.getBuffer();
assert(buf2->getSize() == size);
assert(memcmp(buf2->getBuffer(), p, size) == 0);
}