summaryrefslogtreecommitdiff
path: root/vcl/source/filter
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/filter')
-rw-r--r--vcl/source/filter/graphicfilter.cxx6
-rw-r--r--vcl/source/filter/ipdf/pdfdocument.cxx11
-rw-r--r--vcl/source/filter/jpeg/Exif.cxx2
-rw-r--r--vcl/source/filter/jpeg/Exif.hxx6
4 files changed, 14 insertions, 11 deletions
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 901c9407e36f..d42eaede02d1 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -869,7 +869,7 @@ ErrCode GraphicFilter::ImplSetError( ErrCode nError, const SvStream* pStm )
return nError;
}
-sal_uInt16 GraphicFilter::GetImportFormatCount()
+sal_uInt16 GraphicFilter::GetImportFormatCount() const
{
return pConfig->GetImportFormatCount();
}
@@ -916,7 +916,7 @@ OUString GraphicFilter::GetImportWildcard( sal_uInt16 nFormat, sal_Int32 nEntry
return pConfig->GetImportWildcard( nFormat, nEntry );
}
-sal_uInt16 GraphicFilter::GetExportFormatCount()
+sal_uInt16 GraphicFilter::GetExportFormatCount() const
{
return pConfig->GetExportFormatCount();
}
@@ -1176,7 +1176,7 @@ void GraphicFilter::ImportGraphics(std::vector< std::shared_ptr<Graphic> >& rGra
}
Graphic GraphicFilter::ImportUnloadedGraphic(SvStream& rIStream, sal_uInt64 sizeLimit,
- Size* pSizeHint)
+ const Size* pSizeHint)
{
Graphic aGraphic;
sal_uInt16 nFormat = GRFILTER_FORMAT_DONTKNOW;
diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx
index 9aa317715e41..1aec86c9ee2f 100644
--- a/vcl/source/filter/ipdf/pdfdocument.cxx
+++ b/vcl/source/filter/ipdf/pdfdocument.cxx
@@ -1812,7 +1812,10 @@ size_t PDFDocument::GetObjectOffset(size_t nIndex) const
return it->second.GetOffset();
}
-const std::vector<std::unique_ptr<PDFElement>>& PDFDocument::GetElements() { return m_aElements; }
+const std::vector<std::unique_ptr<PDFElement>>& PDFDocument::GetElements() const
+{
+ return m_aElements;
+}
/// Visits the page tree recursively, looking for page objects.
static void visitPages(PDFObjectElement* pPages, std::vector<PDFObjectElement*>& rRet)
@@ -2470,7 +2473,7 @@ sal_uInt64 PDFObjectElement::GetDictionaryOffset()
void PDFObjectElement::SetArrayOffset(sal_uInt64 nArrayOffset) { m_nArrayOffset = nArrayOffset; }
-sal_uInt64 PDFObjectElement::GetArrayOffset() { return m_nArrayOffset; }
+sal_uInt64 PDFObjectElement::GetArrayOffset() const { return m_nArrayOffset; }
void PDFDictionaryElement::SetKeyOffset(const OString& rKey, sal_uInt64 nOffset)
{
@@ -2517,7 +2520,7 @@ sal_uInt64 PDFObjectElement::GetDictionaryLength()
void PDFObjectElement::SetArrayLength(sal_uInt64 nArrayLength) { m_nArrayLength = nArrayLength; }
-sal_uInt64 PDFObjectElement::GetArrayLength() { return m_nArrayLength; }
+sal_uInt64 PDFObjectElement::GetArrayLength() const { return m_nArrayLength; }
PDFDictionaryElement* PDFObjectElement::GetDictionary()
{
@@ -2978,7 +2981,7 @@ void PDFArrayElement::PushBack(PDFElement* pElement)
m_aElements.push_back(pElement);
}
-const std::vector<PDFElement*>& PDFArrayElement::GetElements() { return m_aElements; }
+const std::vector<PDFElement*>& PDFArrayElement::GetElements() const { return m_aElements; }
PDFEndArrayElement::PDFEndArrayElement() = default;
diff --git a/vcl/source/filter/jpeg/Exif.cxx b/vcl/source/filter/jpeg/Exif.cxx
index 4bb43049f76d..6dd3bd1b2baa 100644
--- a/vcl/source/filter/jpeg/Exif.cxx
+++ b/vcl/source/filter/jpeg/Exif.cxx
@@ -50,7 +50,7 @@ Orientation Exif::convertToOrientation(sal_Int32 value)
return TOP_LEFT;
}
-sal_Int32 Exif::getRotation()
+sal_Int32 Exif::getRotation() const
{
switch(maOrientation) {
case TOP_LEFT:
diff --git a/vcl/source/filter/jpeg/Exif.hxx b/vcl/source/filter/jpeg/Exif.hxx
index d6d13c55877a..7eb5a7da0009 100644
--- a/vcl/source/filter/jpeg/Exif.hxx
+++ b/vcl/source/filter/jpeg/Exif.hxx
@@ -66,10 +66,10 @@ public:
Exif();
~Exif();
- bool hasExif() { return mbExifPresent;}
+ bool hasExif() const { return mbExifPresent;}
- Orientation getOrientation() { return maOrientation;}
- sal_Int32 getRotation();
+ Orientation getOrientation() const { return maOrientation;}
+ sal_Int32 getRotation() const;
void setOrientation(Orientation orientation);