summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-10-24 21:18:44 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-10-25 09:04:24 +0200
commit8160d5db205e44c1a218b0cbcf63278578e5f063 (patch)
tree48e3ca30bbdc612f6e0fb1134a4e77252d9c8cea /include
parentba60a132e788201d4074c576352b4f462c16a9c6 (diff)
vcl: use default member initializer for PDFElement
Less code and other classes in the same header already do this. Change-Id: I8a64cabcdb4b95acb7e2f55ec371568702d9c331 Reviewed-on: https://gerrit.libreoffice.org/62333 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/filter/pdfdocument.hxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/vcl/filter/pdfdocument.hxx b/include/vcl/filter/pdfdocument.hxx
index c245c815617b..3ec08020044a 100644
--- a/include/vcl/filter/pdfdocument.hxx
+++ b/include/vcl/filter/pdfdocument.hxx
@@ -51,15 +51,11 @@ class PDFNumberElement;
/// A byte range in a PDF file.
class VCL_DLLPUBLIC PDFElement
{
- bool m_bVisiting;
- bool m_bParsing;
+ bool m_bVisiting = false;
+ bool m_bParsing = false;
public:
- PDFElement()
- : m_bVisiting(false)
- , m_bParsing(false)
- {
- }
+ PDFElement() = default;
virtual bool Read(SvStream& rStream) = 0;
virtual ~PDFElement() = default;
void setVisiting(bool bVisiting) { m_bVisiting = bVisiting; }