diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 10:11:00 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-03-09 12:41:09 +0000 |
commit | 5a308b1239a09417507b0d05090ff2d3418d5133 (patch) | |
tree | 990fa9015a4107e4916691eb4dee80fa5713e96b /sdext | |
parent | c1a227600d0b16df283162d24f1a31f5c9cee474 (diff) |
V801: Decreased performance
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterAccessibility.cxx | 32 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterScrollBar.cxx | 4 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterScrollBar.hxx | 2 |
3 files changed, 19 insertions, 19 deletions
diff --git a/sdext/source/presenter/PresenterAccessibility.cxx b/sdext/source/presenter/PresenterAccessibility.cxx index b89752fa775f..a1ccb22959fb 100644 --- a/sdext/source/presenter/PresenterAccessibility.cxx +++ b/sdext/source/presenter/PresenterAccessibility.cxx @@ -67,7 +67,7 @@ class PresenterAccessible::AccessibleObject { public: AccessibleObject ( - const css::lang::Locale aLocale, + const css::lang::Locale& rLocale, const sal_Int16 nRole, const OUString& rsName); void LateInitialization (void); @@ -320,7 +320,7 @@ class PresenterAccessible::AccessibleParagraph { public: AccessibleParagraph ( - const css::lang::Locale aLocale, + const css::lang::Locale& rLocale, const sal_Int16 nRole, const OUString& rsName, const SharedPresenterTextParagraph& rpParagraph, @@ -422,7 +422,7 @@ class AccessibleConsole public: static rtl::Reference<PresenterAccessible::AccessibleObject> Create ( const css::uno::Reference<css::uno::XComponentContext>& rxContext, - const lang::Locale aLocale) + const lang::Locale& rLocale) { OUString sName ("Presenter Console"); PresenterConfigurationAccess aConfiguration ( @@ -434,7 +434,7 @@ public: rtl::Reference<PresenterAccessible::AccessibleObject> pObject ( new PresenterAccessible::AccessibleObject( - aLocale, AccessibleRole::PANEL, sName)); + rLocale, AccessibleRole::PANEL, sName)); pObject->LateInitialization(); pObject->UpdateStateSet(); @@ -449,7 +449,7 @@ class AccessiblePreview public: static rtl::Reference<PresenterAccessible::AccessibleObject> Create ( const Reference<css::uno::XComponentContext>& rxContext, - const lang::Locale aLocale, + const lang::Locale& rLocale, const Reference<awt::XWindow>& rxContentWindow, const Reference<awt::XWindow>& rxBorderWindow) { @@ -465,7 +465,7 @@ public: rtl::Reference<PresenterAccessible::AccessibleObject> pObject ( new PresenterAccessible::AccessibleObject( - aLocale, + rLocale, AccessibleRole::LABEL, sName)); pObject->LateInitialization(); @@ -482,13 +482,13 @@ class AccessibleNotes : public PresenterAccessible::AccessibleObject { public: AccessibleNotes ( - const css::lang::Locale aLocale, + const css::lang::Locale& rLocale, const sal_Int16 nRole, const OUString& rsName); static rtl::Reference<PresenterAccessible::AccessibleObject> Create ( const css::uno::Reference<css::uno::XComponentContext>& rxContext, - const lang::Locale aLocale, + const lang::Locale& rLocale, const Reference<awt::XWindow>& rxContentWindow, const Reference<awt::XWindow>& rxBorderWindow, const ::boost::shared_ptr<PresenterTextView>& rpTextView); @@ -803,14 +803,14 @@ void SAL_CALL PresenterAccessible::initialize (const css::uno::Sequence<css::uno //===== PresenterAccessible::AccessibleObject ========================================= PresenterAccessible::AccessibleObject::AccessibleObject ( - const lang::Locale aLocale, + const lang::Locale& rLocale, const sal_Int16 nRole, const OUString& rsName) : PresenterAccessibleObjectInterfaceBase(m_aMutex), msName(rsName), mxContentWindow(), mxBorderWindow(), - maLocale(aLocale), + maLocale(rLocale), mnRole(nRole), mnStateSet(0), mbIsFocused(false), @@ -1490,12 +1490,12 @@ AccessibleRelation SAL_CALL AccessibleRelationSet::getRelationByType (sal_Int16 //===== PresenterAccessible::AccessibleParagraph ============================== PresenterAccessible::AccessibleParagraph::AccessibleParagraph ( - const lang::Locale aLocale, + const lang::Locale& rLocale, const sal_Int16 nRole, const OUString& rsName, const SharedPresenterTextParagraph& rpParagraph, const sal_Int32 nParagraphIndex) - : PresenterAccessibleParagraphInterfaceBase(aLocale, nRole, rsName), + : PresenterAccessibleParagraphInterfaceBase(rLocale, nRole, rsName), mpParagraph(rpParagraph), mnParagraphIndex(nParagraphIndex) { @@ -1840,17 +1840,17 @@ bool PresenterAccessible::AccessibleParagraph::GetWindowState (const sal_Int16 n //===== AccessibleNotes ======================================================= AccessibleNotes::AccessibleNotes ( - const css::lang::Locale aLocale, + const css::lang::Locale& rLocale, const sal_Int16 nRole, const OUString& rsName) - : AccessibleObject(aLocale,nRole,rsName), + : AccessibleObject(rLocale,nRole,rsName), mpTextView() { } rtl::Reference<PresenterAccessible::AccessibleObject> AccessibleNotes::Create ( const css::uno::Reference<css::uno::XComponentContext>& rxContext, - const lang::Locale aLocale, + const lang::Locale& rLocale, const Reference<awt::XWindow>& rxContentWindow, const Reference<awt::XWindow>& rxBorderWindow, const ::boost::shared_ptr<PresenterTextView>& rpTextView) @@ -1867,7 +1867,7 @@ rtl::Reference<PresenterAccessible::AccessibleObject> AccessibleNotes::Create ( rtl::Reference<AccessibleNotes> pObject ( new AccessibleNotes( - aLocale, + rLocale, AccessibleRole::PANEL, sName)); pObject->LateInitialization(); diff --git a/sdext/source/presenter/PresenterScrollBar.cxx b/sdext/source/presenter/PresenterScrollBar.cxx index b6e440c2e8dd..4b147a844d1c 100644 --- a/sdext/source/presenter/PresenterScrollBar.cxx +++ b/sdext/source/presenter/PresenterScrollBar.cxx @@ -472,13 +472,13 @@ geometry::RealRectangle2D PresenterScrollBar::GetRectangle (const Area eArea) co } void PresenterScrollBar::Repaint ( - const geometry::RealRectangle2D aBox, + const geometry::RealRectangle2D& rBox, const bool bAsynchronousUpdate) { if (mpPaintManager.get() != NULL) mpPaintManager->Invalidate( mxWindow, - PresenterGeometryHelper::ConvertRectangle(aBox), + PresenterGeometryHelper::ConvertRectangle(rBox), bAsynchronousUpdate); } diff --git a/sdext/source/presenter/PresenterScrollBar.hxx b/sdext/source/presenter/PresenterScrollBar.hxx index 76d86e3199b4..543d81d2086b 100644 --- a/sdext/source/presenter/PresenterScrollBar.hxx +++ b/sdext/source/presenter/PresenterScrollBar.hxx @@ -209,7 +209,7 @@ protected: const ::boost::function<void(double)>& rThumbMotionListener); void Repaint ( - const css::geometry::RealRectangle2D aBox, + const css::geometry::RealRectangle2D& rBox, const bool bAsynchronous); void PaintBackground ( const css::awt::Rectangle& rRepaintBox); |