aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QUtil.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-18 16:45:54 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-20 15:16:25 +0200
commit23fc6756f1894e1af35853eb2251f08d5b25cf30 (patch)
tree288f098cc0273dc819621ae4f0eb3b5c9f58360b /libqpdf/QUtil.cc
parent0fe8d4476205c97e402e555aac41a88e70e3e9b2 (diff)
downloadqpdf-23fc6756f1894e1af35853eb2251f08d5b25cf30.tar.zst
Add QUtil::FileCloser to the public API
Diffstat (limited to 'libqpdf/QUtil.cc')
-rw-r--r--libqpdf/QUtil.cc20
1 files changed, 0 insertions, 20 deletions
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<unsigned long, unsigned char> unicode_to_pdf_doc = {
{0x20ac, 0xa0},
};
-namespace
-{
- class FileCloser
- {
- public:
- FileCloser(FILE* f) :
- f(f)
- {
- }
-
- ~FileCloser()
- {
- fclose(f);
- }
-
- private:
- FILE* f;
- };
-} // namespace
-
template <typename T>
static std::string
int_to_string_base_internal(T num, int base, int length)