[poppler] poppler/Object.h
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Feb 10 16:14:48 UTC 2019
poppler/Object.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit e5fee74cbb924bb6758fa7697c66571e50ec2f7d
Author: Albert Astals Cid <aacid at kde.org>
Date: Sun Feb 10 16:52:11 2019 +0100
Make the Object Ref constructor explicit
diff --git a/poppler/Object.h b/poppler/Object.h
index 01668652..69d45a1f 100644
--- a/poppler/Object.h
+++ b/poppler/Object.h
@@ -172,10 +172,10 @@ public:
{ assert(dictA); type = objDict; dict = dictA; }
explicit Object(Stream *streamA)
{ assert(streamA); type = objStream; stream = streamA; }
+ explicit Object(const Ref r)
+ { type = objRef; ref.num = r.num; ref.gen = r.gen; }
Object(int numA, int genA)
{ type = objRef; ref.num = numA; ref.gen = genA; }
- Object(const Ref r)
- { type = objRef; ref.num = r.num; ref.gen = r.gen; }
template<typename T> Object(T) = delete;
More information about the poppler
mailing list