summaryrefslogtreecommitdiff
path: root/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-11 10:46:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 07:56:12 +0200
commitfb1d3b580763a333bbbfe115d09e1b5cd8849675 (patch)
tree93cf0598c86ba188f69ab30425ffea856ea9886b /sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
parent40bc840da261fcc5652e5278dc2566b61f990884 (diff)
loplugin:constfields in sc
Change-Id: If326175d571d15752efd1b63df45b2bc785f7541 Reviewed-on: https://gerrit.libreoffice.org/61653 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx')
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
index 84cdfe7df845..8fe872f73da4 100644
--- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
@@ -97,7 +97,7 @@ public:
private:
ScPreviewShell* mpViewShell;
- ScAccessibleDocumentPagePreview* mpAccDoc;
+ ScAccessibleDocumentPagePreview* const mpAccDoc;
typedef std::vector<ScAccNote> ScAccNotes;
mutable ScAccNotes maNotes;
mutable ScAccNotes maMarks;
@@ -258,7 +258,7 @@ uno::Reference<XAccessible> ScNotesChildren::GetChild(sal_Int32 nIndex) const
struct ScPointFound
{
- tools::Rectangle maPoint;
+ tools::Rectangle const maPoint;
sal_Int32 mnParagraphs;
explicit ScPointFound(const Point& rPoint) : maPoint(rPoint, Size(0, 0)), mnParagraphs(0) {}
bool operator() (const ScAccNote& rNote)
@@ -416,7 +416,7 @@ sal_Int32 ScNotesChildren::CheckChanges(const ScPreviewLocationData& rData,
struct ScChildGone
{
- ScAccessibleDocumentPagePreview* mpAccDoc;
+ ScAccessibleDocumentPagePreview* const mpAccDoc;
explicit ScChildGone(ScAccessibleDocumentPagePreview* pAccDoc) : mpAccDoc(pAccDoc) {}
void operator() (const uno::Reference<XAccessible>& xAccessible) const
{
@@ -434,7 +434,7 @@ struct ScChildGone
struct ScChildNew
{
- ScAccessibleDocumentPagePreview* mpAccDoc;
+ ScAccessibleDocumentPagePreview* const mpAccDoc;
explicit ScChildNew(ScAccessibleDocumentPagePreview* pAccDoc) : mpAccDoc(pAccDoc) {}
void operator() (const uno::Reference<XAccessible>& xAccessible) const
{
@@ -635,7 +635,7 @@ public:
void SetDrawBroadcaster();
private:
- ScAccessibleDocumentPagePreview* mpAccDoc;
+ ScAccessibleDocumentPagePreview* const mpAccDoc;
ScPreviewShell* mpViewShell;
ScShapeRangeVec maShapeRanges;
@@ -927,7 +927,7 @@ uno::Reference<XAccessible> ScShapeChildren::GetControl(sal_Int32 nIndex) const
struct ScShapePointFound
{
- Point maPoint;
+ Point const maPoint;
explicit ScShapePointFound(const awt::Point& rPoint) : maPoint(VCLPoint(rPoint)) {}
bool operator() (const ScShapeChild& rShape)
{