diff options
Diffstat (limited to 'test/pdf-inspector.cc')
-rw-r--r-- | test/pdf-inspector.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/pdf-inspector.cc b/test/pdf-inspector.cc index eb6c62e1..f3034cf1 100644 --- a/test/pdf-inspector.cc +++ b/test/pdf-inspector.cc @@ -4,7 +4,7 @@ // // Copyright 2005 Jonathan Blandford <jrb@redhat.com> // Copyright 2018 Adam Reichold <adam.reichold@t-online.de> -// Copyright 2019 Albert Astals Cid <aacid@kde.org> +// Copyright 2019, 2022 Albert Astals Cid <aacid@kde.org> // //======================================================================== @@ -222,10 +222,7 @@ void PdfInspector::load(const char *file_name) // load the new file if (file_name) { - GooString *filename_g; - - filename_g = new GooString(file_name); - doc = new PDFDoc(filename_g, nullptr, nullptr); + doc = new PDFDoc(std::make_unique<GooString>(file_name), nullptr, nullptr); } if (doc && !doc->isOk()) { |