[Libreoffice-commits] core.git: include/vcl
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Oct 25 07:04:48 UTC 2018
include/vcl/filter/pdfdocument.hxx | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
New commits:
commit 8160d5db205e44c1a218b0cbcf63278578e5f063
Author: Miklos Vajna <vmiklos at collabora.co.uk>
AuthorDate: Wed Oct 24 21:18:44 2018 +0200
Commit: Miklos Vajna <vmiklos at collabora.co.uk>
CommitDate: Thu Oct 25 09:04:24 2018 +0200
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 at collabora.co.uk>
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; }
More information about the Libreoffice-commits
mailing list