From 23fc6756f1894e1af35853eb2251f08d5b25cf30 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 18 May 2022 10:45:54 -0400 Subject: Add QUtil::FileCloser to the public API --- libqpdf/QUtil.cc | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'libqpdf') diff --git a/libqpdf/QUtil.cc b/libqpdf/QUtil.cc index 8edfadae..3e68d95e 100644 --- a/libqpdf/QUtil.cc +++ b/libqpdf/QUtil.cc @@ -305,26 +305,6 @@ static std::map unicode_to_pdf_doc = { {0x20ac, 0xa0}, }; -namespace -{ - class FileCloser - { - public: - FileCloser(FILE* f) : - f(f) - { - } - - ~FileCloser() - { - fclose(f); - } - - private: - FILE* f; - }; -} // namespace - template static std::string int_to_string_base_internal(T num, int base, int length) -- cgit v1.2.3-54-g00ecf