diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-06 17:40:24 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-07 23:38:22 +0100 |
commit | c62e8e2b285b9b401d6add5a7a0da98c7ea86373 (patch) | |
tree | 040e8fa45d6b459200e57e26fbacad6ddd7414f1 /zlib-flate/zlib-flate.cc | |
parent | 3f22bea084d8d64cba1a433726abd709caf8456b (diff) | |
download | qpdf-c62e8e2b285b9b401d6add5a7a0da98c7ea86373.tar.zst |
Update for clean compile with POINTERHOLDER_TRANSITION=2
Diffstat (limited to 'zlib-flate/zlib-flate.cc')
-rw-r--r-- | zlib-flate/zlib-flate.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/zlib-flate/zlib-flate.cc b/zlib-flate/zlib-flate.cc index 29403fa0..61938dd2 100644 --- a/zlib-flate/zlib-flate.cc +++ b/zlib-flate/zlib-flate.cc @@ -75,9 +75,8 @@ int main(int argc, char* argv[]) QUtil::binary_stdout(); QUtil::binary_stdin(); - PointerHolder<Pl_StdioFile> out = new Pl_StdioFile("stdout", stdout); - PointerHolder<Pl_Flate> flate = - new Pl_Flate("flate", out.get(), action); + auto out = make_pointer_holder<Pl_StdioFile>("stdout", stdout); + auto flate = make_pointer_holder<Pl_Flate>("flate", out.get(), action); bool warn = false; flate->setWarnCallback([&warn](char const* msg, int code) { warn = true; |