summaryrefslogtreecommitdiff
path: root/vcl/source/filter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-10-26 09:06:55 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-10-26 12:19:35 +0200
commitf2fa3440330c8bdc352c0633a133e773b0ac0fcf (patch)
treeb3c34554a7c219031c94426c2340e9b36fc34e3e /vcl/source/filter
parentb9fd0d1c42686fed09ec8781780a8ffc61198bcf (diff)
vcl: minor cleanups in pdfdocument
Change-Id: Ib1284b819d4af2e8055698be4160bbb41acba851 Reviewed-on: https://gerrit.libreoffice.org/43866 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'vcl/source/filter')
-rw-r--r--vcl/source/filter/ipdf/pdfdocument.cxx27
1 files changed, 6 insertions, 21 deletions
diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx
index 619041595c6b..7689597699a4 100644
--- a/vcl/source/filter/ipdf/pdfdocument.cxx
+++ b/vcl/source/filter/ipdf/pdfdocument.cxx
@@ -123,18 +123,9 @@ public:
sal_uInt64 GetLocation() const;
};
-XRefEntry::XRefEntry()
- : m_eType(XRefEntryType::NOT_COMPRESSED),
- m_nOffset(0),
- m_bDirty(false)
-{
-}
+XRefEntry::XRefEntry() = default;
-PDFDocument::PDFDocument()
- : m_pTrailer(nullptr),
- m_pXRefStream(nullptr)
-{
-}
+PDFDocument::PDFDocument() = default;
bool PDFDocument::RemoveSignature(size_t nPosition)
{
@@ -1332,11 +1323,9 @@ size_t PDFDocument::FindStartXRef(SvStream& rStream)
it = std::search(it, aBuf.end(), aPrefix.getStr(), aPrefix.getStr() + aPrefix.getLength());
if (it == aBuf.end())
break;
- else
- {
- itLastValid = it;
- ++it;
- }
+
+ itLastValid = it;
+ ++it;
}
if (itLastValid == aBuf.end())
{
@@ -2864,11 +2853,7 @@ bool PDFEndDictionaryElement::Read(SvStream& rStream)
return true;
}
-PDFNameElement::PDFNameElement()
- : m_nLocation(0),
- m_nLength(0)
-{
-}
+PDFNameElement::PDFNameElement() = default;
bool PDFNameElement::Read(SvStream& rStream)
{