summaryrefslogtreecommitdiff
path: root/poppler/StructTreeRoot.h
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2019-03-28 00:09:28 +0100
committerAlbert Astals Cid <tsdgeos@yahoo.es>2019-03-28 10:53:14 +0000
commit926ea4645fa36d29d4bf89009719716668103366 (patch)
tree36f4c6b2939c6b04a5fb0a1ad7363819df17d499 /poppler/StructTreeRoot.h
parent8122f6d6d409b53151a20c5578fc525ee97315e8 (diff)
Use the newly introduced Ref::INVALID()
Diffstat (limited to 'poppler/StructTreeRoot.h')
-rw-r--r--poppler/StructTreeRoot.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/poppler/StructTreeRoot.h b/poppler/StructTreeRoot.h
index 41b1cd85..58b129c8 100644
--- a/poppler/StructTreeRoot.h
+++ b/poppler/StructTreeRoot.h
@@ -5,7 +5,7 @@
// This file is licensed under the GPLv2 or later
//
// Copyright 2013, 2014 Igalia S.L.
-// Copyright 2018 Albert Astals Cid <aacid@kde.org>
+// Copyright 2018, 2019 Albert Astals Cid <aacid@kde.org>
// Copyright 2018 Adrian Johnson <ajohnson@redneon.com>
// Copyright 2018 Adam Reichold <adam.reichold@t-online.de>
//
@@ -64,7 +64,7 @@ private:
Ref ref;
StructElement *element;
- Parent(): element(nullptr) { ref.num = ref.gen = -1; }
+ Parent(): element(nullptr) { ref = Ref::INVALID(); }
Parent(const Parent &p) = default;
Parent& operator=(const Parent &) = default;
~Parent() {}