summaryrefslogtreecommitdiff
path: root/vcl/source/filter/ipdf/pdfdocument.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-15 13:57:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-17 15:06:52 +0200
commit8914595d4623390e4bac9ebbdf0d5ae9ab69aa8a (patch)
tree2fe937925e9cde3e835119c57f12807bc1f419db /vcl/source/filter/ipdf/pdfdocument.cxx
parentd69795b9c9d2dac7b751c6fe8b4663c0c26a129b (diff)
loplugin:unusedfields in vcl part1
Change-Id: I67d176003f39992cd0ff9271a7d6ce26d2cb6619 Reviewed-on: https://gerrit.libreoffice.org/38828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/filter/ipdf/pdfdocument.cxx')
-rw-r--r--vcl/source/filter/ipdf/pdfdocument.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx
index 105800974532..e2ef15cafa98 100644
--- a/vcl/source/filter/ipdf/pdfdocument.cxx
+++ b/vcl/source/filter/ipdf/pdfdocument.cxx
@@ -125,7 +125,6 @@ public:
XRefEntry::XRefEntry()
: m_eType(XRefEntryType::NOT_COMPRESSED),
m_nOffset(0),
- m_nGenerationNumber(0),
m_bDirty(false)
{
}
@@ -308,7 +307,6 @@ bool PDFDocument::WritePageObject(PDFObjectElement& rFirstPage, sal_Int32 nAnnot
sal_uInt32 nAnnotsId = pAnnotsObject->GetObjectValue();
m_aXRef[nAnnotsId].m_eType = XRefEntryType::NOT_COMPRESSED;
m_aXRef[nAnnotsId].m_nOffset = m_aEditBuffer.Tell();
- m_aXRef[nAnnotsId].m_nGenerationNumber = 0;
m_aXRef[nAnnotsId].m_bDirty = true;
m_aEditBuffer.WriteUInt32AsString(nAnnotsId);
m_aEditBuffer.WriteCharPtr(" 0 obj\n[");
@@ -431,7 +429,6 @@ bool PDFDocument::WriteCatalogObject(sal_Int32 nAnnotId, PDFReferenceElement*& p
sal_uInt32 nAcroFormId = pAcroFormObject->GetObjectValue();
m_aXRef[nAcroFormId].m_eType = XRefEntryType::NOT_COMPRESSED;
m_aXRef[nAcroFormId].m_nOffset = m_aEditBuffer.Tell();
- m_aXRef[nAcroFormId].m_nGenerationNumber = 0;
m_aXRef[nAcroFormId].m_bDirty = true;
m_aEditBuffer.WriteUInt32AsString(nAcroFormId);
m_aEditBuffer.WriteCharPtr(" 0 obj\n");
@@ -1629,7 +1626,6 @@ void PDFDocument::ReadXRefStream(SvStream& rStream)
break;
}
aEntry.m_nOffset = nStreamOffset;
- aEntry.m_nGenerationNumber = nGenerationNumber;
m_aXRef[nIndex] = aEntry;
}
}
@@ -1703,7 +1699,6 @@ void PDFDocument::ReadXRef(SvStream& rStream)
{
XRefEntry aEntry;
aEntry.m_nOffset = aOffset.GetValue();
- aEntry.m_nGenerationNumber = aGenerationNumber.GetValue();
// Initially only the first entry is dirty.
if (nIndex == 0)
aEntry.m_bDirty = true;
@@ -3025,7 +3020,6 @@ bool PDFArrayElement::Read(SvStream& rStream)
SAL_WARN("vcl.filter", "PDFArrayElement::Read: unexpected character: " << ch);
return false;
}
- m_nOffset = rStream.Tell();
SAL_INFO("vcl.filter", "PDFArrayElement::Read: '['");