diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-24 15:51:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-25 08:40:00 +0200 |
commit | f360244e5ddb6b607e752a0df3c37ccefaec1d9f (patch) | |
tree | 38729115a06d88460ad0a413d1d210bae7889cbd /sc | |
parent | 3aa7db4586c53a0815b74cc514ff8a6541dc7e01 (diff) |
drop enum IAccessibleViewForwarderListener::ChangeType
since only one of it's values was in use, and simplify the
ViewForwarderChanged method as a consequence.
Change-Id: I00544c9b0a601c01e49519be5bafe192c6f735f6
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocument.cxx | 7 | ||||
-rw-r--r-- | sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sc/source/ui/Accessibility/AccessibleDocument.cxx b/sc/source/ui/Accessibility/AccessibleDocument.cxx index 9c787591ee28..703f61db7b64 100644 --- a/sc/source/ui/Accessibility/AccessibleDocument.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocument.cxx @@ -1377,13 +1377,12 @@ namespace { struct ScVisAreaChanged { - ScAccessibleDocument* mpAccDoc; - explicit ScVisAreaChanged(ScAccessibleDocument* pAccDoc) : mpAccDoc(pAccDoc) {} + explicit ScVisAreaChanged() {} void operator() (const ScAccessibleShapeData* pAccShapeData) const { if (pAccShapeData && pAccShapeData->pAccShape.is()) { - pAccShapeData->pAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpAccDoc); + pAccShapeData->pAccShape->ViewForwarderChanged(); } } }; @@ -1391,7 +1390,7 @@ namespace void ScChildrenShapes::VisAreaChanged() const { - ScVisAreaChanged aVisAreaChanged(mpAccessibleDocument); + ScVisAreaChanged aVisAreaChanged; std::for_each(maZOrderedShapes.begin(), maZOrderedShapes.end(), aVisAreaChanged); } diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx index 604eb894476a..d3a599c305c4 100644 --- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx +++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx @@ -806,7 +806,7 @@ namespace { if (rAccShapeData.mpAccShape.is()) { - rAccShapeData.mpAccShape->ViewForwarderChanged(::accessibility::IAccessibleViewForwarderListener::VISIBLE_AREA, mpViewForwarder); + rAccShapeData.mpAccShape->ViewForwarderChanged(); } } }; |