diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-07 14:19:22 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-07 14:55:55 +0200 |
commit | b2fb84499e1f75735e8fd90bc2eece3fed9af5f6 (patch) | |
tree | 186f3a6947b4d5feffe1326f66021102fac88c83 /sd | |
parent | c89f73a6033b28484f5e10054b542fa69a9fe475 (diff) |
loplugin:write only fields
Change-Id: Ia0fb487c5590e096659b81f76c4dc543e184c59c
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/accessibility/AccessiblePageShape.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/inc/AccessiblePageShape.hxx | 8 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx | 6 |
3 files changed, 5 insertions, 14 deletions
diff --git a/sd/source/ui/accessibility/AccessiblePageShape.cxx b/sd/source/ui/accessibility/AccessiblePageShape.cxx index bc838104c208..7b2c632c72ec 100644 --- a/sd/source/ui/accessibility/AccessiblePageShape.cxx +++ b/sd/source/ui/accessibility/AccessiblePageShape.cxx @@ -41,9 +41,8 @@ namespace accessibility { AccessiblePageShape::AccessiblePageShape ( const uno::Reference<drawing::XDrawPage>& rxPage, const uno::Reference<XAccessible>& rxParent, - const AccessibleShapeTreeInfo& rShapeTreeInfo, - long nIndex) - : AccessibleShape (AccessibleShapeInfo (nullptr, rxParent, nIndex), rShapeTreeInfo), + const AccessibleShapeTreeInfo& rShapeTreeInfo) + : AccessibleShape (AccessibleShapeInfo (nullptr, rxParent), rShapeTreeInfo), mxPage (rxPage) { // The main part of the initialization is done in the init method which diff --git a/sd/source/ui/inc/AccessiblePageShape.hxx b/sd/source/ui/inc/AccessiblePageShape.hxx index 3027d752aa13..90a977f79cb6 100644 --- a/sd/source/ui/inc/AccessiblePageShape.hxx +++ b/sd/source/ui/inc/AccessiblePageShape.hxx @@ -47,11 +47,6 @@ public: the <member>getIndexInParent</member> method is called. @param rShapeTreeInfo Bundel of information passed to this shape and all of its desendants. - @param nIndex - Index used to disambiguate between objects that have the same - name. Passing a value of -1 leads to the use of the object's - z-order instead. Because that is not a good substitute, better - pass an ever increasing counter. @attention Always call the <member>init</member> method after creating a new accessible shape. This is one way to overcome the potential @@ -62,8 +57,7 @@ public: AccessiblePageShape ( const css::uno::Reference<css::drawing::XDrawPage>& rxPage, const css::uno::Reference<css::accessibility::XAccessible>& rxParent, - const AccessibleShapeTreeInfo& rShapeTreeInfo, - long nIndex = -1); + const AccessibleShapeTreeInfo& rShapeTreeInfo); virtual ~AccessiblePageShape(); diff --git a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx index 0d48069a31e9..52048b77e641 100644 --- a/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx +++ b/sd/source/ui/slidesorter/cache/SlsPageCacheManager.cxx @@ -60,15 +60,13 @@ public: class RecentlyUsedCacheDescriptor { public: - ::sd::slidesorter::cache::PageCacheManager::DocumentKey mpDocument; Size maPreviewSize; std::shared_ptr< ::sd::slidesorter::cache::PageCacheManager::Cache> mpCache; RecentlyUsedCacheDescriptor( - ::sd::slidesorter::cache::PageCacheManager::DocumentKey pDocument, const Size& rPreviewSize, const std::shared_ptr< ::sd::slidesorter::cache::PageCacheManager::Cache>& rpCache) - :mpDocument(pDocument),maPreviewSize(rPreviewSize),mpCache(rpCache) + :maPreviewSize(rPreviewSize),mpCache(rpCache) {} }; @@ -425,7 +423,7 @@ void PageCacheManager::PutRecentlyUsedCache( if (iQueue != mpRecentlyUsedPageCaches->end()) { - iQueue->second.push_front(RecentlyUsedCacheDescriptor(pDocument,rPreviewSize,rpCache)); + iQueue->second.push_front(RecentlyUsedCacheDescriptor(rPreviewSize,rpCache)); // Shorten the list of recently used caches to the allowed maximal length. while (iQueue->second.size() > mnMaximalRecentlyCacheCount) iQueue->second.pop_back(); |