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 /include | |
parent | c1a227600d0b16df283162d24f1a31f5c9cee474 (diff) |
V801: Decreased performance
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
Diffstat (limited to 'include')
24 files changed, 44 insertions, 44 deletions
diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx index 0a02ef7b0231..5c6a6593189b 100644 --- a/include/dbaccess/genericcontroller.hxx +++ b/include/dbaccess/genericcontroller.hxx @@ -227,7 +227,7 @@ namespace dbaui ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > xListener; DispatchTarget() { } - DispatchTarget(const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener > xRef) : aURL(rURL), xListener(xRef) { } + DispatchTarget(const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& rRef) : aURL(rURL), xListener(rRef) { } }; typedef std::map<sal_uInt16, FeatureState> StateCache; diff --git a/include/oox/core/xmlfilterbase.hxx b/include/oox/core/xmlfilterbase.hxx index a28af8630417..c4e4b5666cf7 100644 --- a/include/oox/core/xmlfilterbase.hxx +++ b/include/oox/core/xmlfilterbase.hxx @@ -166,7 +166,7 @@ public: @return Added relation Id. */ - OUString addRelation( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > xOutputStream, const OUString& rType, const OUString& rTarget, bool bExternal = false ); + OUString addRelation( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream >& rOutputStream, const OUString& rType, const OUString& rTarget, bool bExternal = false ); /** Returns a stack of used textfields, used by the pptx importer to replace links to slidepages with the real page name */ TextFieldStack& getTextFieldStack() const; diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx index 052d60c919fe..7d951887e701 100644 --- a/include/oox/drawingml/shape.hxx +++ b/include/oox/drawingml/shape.hxx @@ -114,7 +114,7 @@ public: void setRotation( sal_Int32 nRotation ) { mnRotation = nRotation; } void setFlip( bool bFlipH, bool bFlipV ) { mbFlipH = bFlipH; mbFlipV = bFlipV; } - void addChild( const ShapePtr pChildPtr ) { maChildren.push_back( pChildPtr ); } + void addChild( const ShapePtr& rChildPtr ) { maChildren.push_back( rChildPtr ); } std::vector< ShapePtr >& getChildren() { return maChildren; } void setName( const OUString& rName ) { msName = rName; } diff --git a/include/oox/export/shapes.hxx b/include/oox/export/shapes.hxx index 516220029e47..bca9ca67ff4c 100644 --- a/include/oox/export/shapes.hxx +++ b/include/oox/export/shapes.hxx @@ -46,7 +46,7 @@ private: static int mnEmbeddeDocumentCounter; struct ShapeCheck { - bool operator()( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape> s1, const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape> s2 ) const + bool operator()( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape>& s1, const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape>& s2 ) const { return s1 == s2; } diff --git a/include/oox/ppt/pptgraphicshapecontext.hxx b/include/oox/ppt/pptgraphicshapecontext.hxx index a72721e069ac..827cfe558d9e 100644 --- a/include/oox/ppt/pptgraphicshapecontext.hxx +++ b/include/oox/ppt/pptgraphicshapecontext.hxx @@ -29,7 +29,7 @@ class PPTGraphicShapeContext : public ::oox::drawingml::GraphicShapeContext SlidePersistPtr mpSlidePersistPtr; public: - PPTGraphicShapeContext( ::oox::core::ContextHandler2Helper& rParent, const SlidePersistPtr pSlidePersistPtr, oox::drawingml::ShapePtr pMasterShapePtr, oox::drawingml::ShapePtr pShapePtr ); + PPTGraphicShapeContext( ::oox::core::ContextHandler2Helper& rParent, const SlidePersistPtr& rSlidePersistPtr, oox::drawingml::ShapePtr pMasterShapePtr, oox::drawingml::ShapePtr pShapePtr ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) SAL_OVERRIDE; }; diff --git a/include/oox/ppt/pptshapecontext.hxx b/include/oox/ppt/pptshapecontext.hxx index 00c87cf57d05..11514f75f7ac 100644 --- a/include/oox/ppt/pptshapecontext.hxx +++ b/include/oox/ppt/pptshapecontext.hxx @@ -30,7 +30,7 @@ class PPTShapeContext : public ::oox::drawingml::ShapeContext SlidePersistPtr mpSlidePersistPtr; public: - PPTShapeContext( ::oox::core::ContextHandler2Helper& rParent, const SlidePersistPtr pSlidePersistPtr, oox::drawingml::ShapePtr pMasterShapePtr, oox::drawingml::ShapePtr pShapePtr ); + PPTShapeContext( ::oox::core::ContextHandler2Helper& rParent, const SlidePersistPtr& rSlidePersistPtr, oox::drawingml::ShapePtr pMasterShapePtr, oox::drawingml::ShapePtr pShapePtr ); virtual ::oox::core::ContextHandlerRef onCreateContext( ::sal_Int32 Element, const ::oox::AttributeList& rAttribs ) SAL_OVERRIDE; }; diff --git a/include/oox/ppt/pptshapegroupcontext.hxx b/include/oox/ppt/pptshapegroupcontext.hxx index 5cae54d241a9..07947fbec2cd 100644 --- a/include/oox/ppt/pptshapegroupcontext.hxx +++ b/include/oox/ppt/pptshapegroupcontext.hxx @@ -37,7 +37,7 @@ class PPTShapeGroupContext : public ::oox::drawingml::ShapeGroupContext public: PPTShapeGroupContext( ::oox::core::ContextHandler2Helper& rParent, - const oox::ppt::SlidePersistPtr pSlidePersistPtr, + const oox::ppt::SlidePersistPtr& rSlidePersistPtr, const oox::ppt::ShapeLocation eShapeLocation, oox::drawingml::ShapePtr pMasterShapePtr, oox::drawingml::ShapePtr pGroupShapePtr ); diff --git a/include/oox/ppt/presentationfragmenthandler.hxx b/include/oox/ppt/presentationfragmenthandler.hxx index 998d0c0d8f4a..b4b10bca23b1 100644 --- a/include/oox/ppt/presentationfragmenthandler.hxx +++ b/include/oox/ppt/presentationfragmenthandler.hxx @@ -43,8 +43,8 @@ public: virtual ::oox::core::ContextHandlerRef onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs ) SAL_OVERRIDE; protected: - bool importSlide( const ::oox::core::FragmentHandlerRef& rxSlideFragmentHandler, - const oox::ppt::SlidePersistPtr pPersist ); + bool importSlide( const ::oox::core::FragmentHandlerRef& rSlideFragmentHandler, + const oox::ppt::SlidePersistPtr& rPersist ); private: diff --git a/include/oox/ppt/slidepersist.hxx b/include/oox/ppt/slidepersist.hxx index db4f7e605b7e..91cd49bc3426 100644 --- a/include/oox/ppt/slidepersist.hxx +++ b/include/oox/ppt/slidepersist.hxx @@ -74,16 +74,16 @@ public: void setLayoutPath( const OUString& rLayoutPath ) { maLayoutPath = rLayoutPath; } const OUString getLayoutPath() const { return maLayoutPath; } - void setTheme( const oox::drawingml::ThemePtr pThemePtr ){ mpThemePtr = pThemePtr; } + void setTheme( const oox::drawingml::ThemePtr& rThemePtr ){ mpThemePtr = rThemePtr; } oox::drawingml::ThemePtr getTheme() const { return mpThemePtr; } - void setClrScheme( const oox::drawingml::ClrSchemePtr pClrSchemePtr ){ mpClrSchemePtr = pClrSchemePtr; } + void setClrScheme( const oox::drawingml::ClrSchemePtr& rClrSchemePtr ){ mpClrSchemePtr = rClrSchemePtr; } oox::drawingml::ClrSchemePtr getClrScheme() const { return mpClrSchemePtr; } void setClrMap( const oox::drawingml::ClrMapPtr pClrMapPtr ){ mpClrMapPtr = pClrMapPtr; } oox::drawingml::ClrMapPtr getClrMap() const { return mpClrMapPtr; } - void setBackgroundProperties( const oox::drawingml::FillPropertiesPtr pFillPropertiesPtr ){ mpBackgroundPropertiesPtr = pFillPropertiesPtr; } + void setBackgroundProperties( const oox::drawingml::FillPropertiesPtr& rFillPropertiesPtr ){ mpBackgroundPropertiesPtr = rFillPropertiesPtr; } oox::drawingml::FillPropertiesPtr getBackgroundProperties() const { return mpBackgroundPropertiesPtr; } oox::drawingml::Color& getBackgroundColor() { return maBackgroundColor; } diff --git a/include/sfx2/sidebar/EnumContext.hxx b/include/sfx2/sidebar/EnumContext.hxx index 29185374b6ba..80e8228484ed 100644 --- a/include/sfx2/sidebar/EnumContext.hxx +++ b/include/sfx2/sidebar/EnumContext.hxx @@ -117,12 +117,12 @@ public: Writer or WriterWeb -> WriterAndWeb Use the Application_DrawImpress or Application_WriterAndWeb values in the CombinedEnumContext macro. */ - sal_Int32 GetCombinedContext_DI(void) const; + sal_Int32 GetCombinedContext_DI() const; - Application GetApplication_DI (void) const; + Application GetApplication_DI() const; - bool operator == (const EnumContext aOther); - bool operator != (const EnumContext aOther); + bool operator == (const EnumContext& rOther); + bool operator != (const EnumContext& rOther); /** When two contexts are matched against each other then application or context name may have the wildcard value 'any'. diff --git a/include/sfx2/sidebar/Tools.hxx b/include/sfx2/sidebar/Tools.hxx index 0df6d17c620a..3aff9ea7a022 100644 --- a/include/sfx2/sidebar/Tools.hxx +++ b/include/sfx2/sidebar/Tools.hxx @@ -45,8 +45,8 @@ public: const ::rtl::OUString& rsURL, const css::uno::Reference<css::frame::XFrame>& rxFrame); - static css::awt::Gradient VclToAwtGradient (const Gradient aGradient); - static Gradient AwtToVclGradient (const css::awt::Gradient aGradient); + static css::awt::Gradient VclToAwtGradient (const Gradient& rGradient); + static Gradient AwtToVclGradient (const css::awt::Gradient& rGradient); static css::util::URL GetURL (const ::rtl::OUString& rsCommand); static css::uno::Reference<css::frame::XDispatch> GetDispatch ( diff --git a/include/svx/PaletteManager.hxx b/include/svx/PaletteManager.hxx index bde6a7795c1e..7af989c1d862 100644 --- a/include/svx/PaletteManager.hxx +++ b/include/svx/PaletteManager.hxx @@ -67,7 +67,7 @@ public: void SetBtnUpdater(svx::ToolboxButtonColorUpdater* pBtnUpdater); void PopupColorPicker(const OUString& aCommand); - static void DispatchColorCommand(const OUString& aCommand, const Color aColor); + static void DispatchColorCommand(const OUString& aCommand, const Color& rColor); }; #endif // INCLUDED_SVX_PALETTEMANAGER_HXX diff --git a/include/svx/SmartTagMgr.hxx b/include/svx/SmartTagMgr.hxx index 631de968f58f..321c7055ba71 100644 --- a/include/svx/SmartTagMgr.hxx +++ b/include/svx/SmartTagMgr.hxx @@ -152,14 +152,14 @@ public: */ void RecognizeString( const OUString& rText, - const com::sun::star::uno::Reference< com::sun::star::text::XTextMarkup > xMarkup, - const com::sun::star::uno::Reference< com::sun::star::frame::XController > xController, + const com::sun::star::uno::Reference< com::sun::star::text::XTextMarkup >& rMarkup, + const com::sun::star::uno::Reference< com::sun::star::frame::XController >& rController, const com::sun::star::lang::Locale& rLocale, sal_uInt32 nStart, sal_uInt32 nLen ) const; - void RecognizeTextRange(const com::sun::star::uno::Reference< com::sun::star::text::XTextRange> xRange, - const com::sun::star::uno::Reference< com::sun::star::text::XTextMarkup > xMarkup, - const com::sun::star::uno::Reference< com::sun::star::frame::XController > xController) const; + void RecognizeTextRange(const com::sun::star::uno::Reference< com::sun::star::text::XTextRange>& rRange, + const com::sun::star::uno::Reference< com::sun::star::text::XTextMarkup >& rMarkup, + const com::sun::star::uno::Reference< com::sun::star::frame::XController >& rController) const; /** Returns all action references associated with a given list of smart tag types diff --git a/include/svx/lathe3d.hxx b/include/svx/lathe3d.hxx index b2138c5089f7..87f2fa76ef70 100644 --- a/include/svx/lathe3d.hxx +++ b/include/svx/lathe3d.hxx @@ -47,7 +47,7 @@ private: public: TYPEINFO_OVERRIDE(); - E3dLatheObj(E3dDefaultAttributes& rDefault, const basegfx::B2DPolyPolygon rPoly2D); + E3dLatheObj(E3dDefaultAttributes& rDefault, const basegfx::B2DPolyPolygon& rPoly2D); E3dLatheObj(); // HorizontalSegments: diff --git a/include/svx/shapepropertynotifier.hxx b/include/svx/shapepropertynotifier.hxx index 1d2147a93d56..ac0ac3f5fa3d 100644 --- a/include/svx/shapepropertynotifier.hxx +++ b/include/svx/shapepropertynotifier.hxx @@ -115,7 +115,7 @@ namespace svx /** registers a IPropertyValueProvider */ - void registerProvider( const ShapeProperty _eProperty, const PPropertyValueProvider _pProvider ); + void registerProvider( const ShapeProperty _eProperty, const PPropertyValueProvider& _rProvider ); /** notifies changes in the given property to all registered listeners diff --git a/include/svx/svdoashp.hxx b/include/svx/svdoashp.hxx index 513813d3b8ed..4194b2d62191 100644 --- a/include/svx/svdoashp.hxx +++ b/include/svx/svdoashp.hxx @@ -110,7 +110,7 @@ public: SVX_DLLPRIVATE void DragCreateObject( SdrDragStat& rDrag ); SVX_DLLPRIVATE void DragResizeCustomShape( const Rectangle& rNewRect ); - SVX_DLLPRIVATE void DragMoveCustomShapeHdl( const Point aDestination, + SVX_DLLPRIVATE void DragMoveCustomShapeHdl( const Point& rDestination, const sal_uInt16 nCustomShapeHdlNum, bool bMoveCalloutRectangle ); // #i37011# centralize throw-away of render geometry diff --git a/include/svx/svdtrans.hxx b/include/svx/svdtrans.hxx index f2e159104177..c37ac4fb1ac1 100644 --- a/include/svx/svdtrans.hxx +++ b/include/svx/svdtrans.hxx @@ -88,15 +88,15 @@ double CrookSlantXPoint(Point& rPnt, Point* pC1, Point* pC2, const Point& rCente const Point& rRad, double& rSin, double& rCos, bool bVert); double CrookStretchXPoint(Point& rPnt, Point* pC1, Point* pC2, const Point& rCenter, const Point& rRad, double& rSin, double& rCos, bool bVert, - const Rectangle rRefRect); + const Rectangle& rRefRect); void CrookRotatePoly(XPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert); void CrookSlantPoly(XPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert); -void CrookStretchPoly(XPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert, const Rectangle rRefRect); +void CrookStretchPoly(XPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert, const Rectangle& rRefRect); void CrookRotatePoly(XPolyPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert); void CrookSlantPoly(XPolyPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert); -void CrookStretchPoly(XPolyPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert, const Rectangle rRefRect); +void CrookStretchPoly(XPolyPolygon& rPoly, const Point& rCenter, const Point& rRad, bool bVert, const Rectangle& rRefRect); /**************************************************************************************************/ /* Inline */ diff --git a/include/svx/transfrmhelper.hxx b/include/svx/transfrmhelper.hxx index 71affa79ab13..d5f293dbc10a 100644 --- a/include/svx/transfrmhelper.hxx +++ b/include/svx/transfrmhelper.hxx @@ -39,9 +39,9 @@ public: rRange = basegfx::B2DRange(aTopLeft, aBottomRight); } - static void ScaleRect(basegfx::B2DRange& rRange, const Fraction aUIScale) + static void ScaleRect(basegfx::B2DRange& rRange, const Fraction& rUIScale) { - const double fFactor(1.0 / double(aUIScale)); + const double fFactor(1.0 / double(rUIScale)); rRange = basegfx::B2DRange(rRange.getMinimum() * fFactor, rRange.getMaximum() * fFactor); } }; diff --git a/include/svx/ucsubset.hxx b/include/svx/ucsubset.hxx index a2a8a7e2abc6..ccdc3d92f509 100644 --- a/include/svx/ucsubset.hxx +++ b/include/svx/ucsubset.hxx @@ -63,7 +63,7 @@ typedef ::std::list<Subset> SubsetList; class SVX_DLLPUBLIC SubsetMap : private Resource { public: - SubsetMap( const FontCharMapPtr ); + SubsetMap( const FontCharMapPtr& ); const Subset* GetSubsetByUnicode( sal_UCS4 ) const; const Subset* GetNextSubset( bool bFirst ) const; @@ -73,7 +73,7 @@ private: mutable SubsetList::const_iterator maSubsetIterator; SVX_DLLPRIVATE void InitList(); - SVX_DLLPRIVATE void ApplyCharMap( const FontCharMapPtr ); + SVX_DLLPRIVATE void ApplyCharMap( const FontCharMapPtr& ); }; #endif diff --git a/include/svx/xexch.hxx b/include/svx/xexch.hxx index 0154adfc9e2e..cba949d49bcb 100644 --- a/include/svx/xexch.hxx +++ b/include/svx/xexch.hxx @@ -43,7 +43,7 @@ public: TYPEINFO(); XFillExchangeData(); - XFillExchangeData(const XFillAttrSetItem rXFillAttrSetItem); + XFillExchangeData(const XFillAttrSetItem& rXFillAttrSetItem); virtual ~XFillExchangeData(); XFillExchangeData& operator=( const XFillExchangeData& rXFillExchangeData ); diff --git a/include/xmloff/SchXMLImportHelper.hxx b/include/xmloff/SchXMLImportHelper.hxx index b4dd0e518e33..e96b500b30a6 100644 --- a/include/xmloff/SchXMLImportHelper.hxx +++ b/include/xmloff/SchXMLImportHelper.hxx @@ -94,9 +94,9 @@ public: SvXMLImport& rImport, sal_uInt16 nPrefix, const OUString& rLocalName, const com::sun::star::uno::Reference< - com::sun::star::frame::XModel > xChartModel, + com::sun::star::frame::XModel >& rChartModel, const com::sun::star::uno::Reference< - com::sun::star::xml::sax::XAttributeList >& xAttrList ); + com::sun::star::xml::sax::XAttributeList >& rAttrList ); /** set the auto-style context that will be used to retrieve auto-styles used inside the following <chart:chart> element to parse diff --git a/include/xmloff/SettingsExportHelper.hxx b/include/xmloff/SettingsExportHelper.hxx index 346a20c8c560..32677e095c75 100644 --- a/include/xmloff/SettingsExportHelper.hxx +++ b/include/xmloff/SettingsExportHelper.hxx @@ -77,10 +77,10 @@ class XMLOFF_DLLPUBLIC XMLSettingsExportHelper const OUString& rName, const bool bNameAccess) const; void exportNameAccess( - const com::sun::star::uno::Reference<com::sun::star::container::XNameAccess>& aNamed, + const com::sun::star::uno::Reference<com::sun::star::container::XNameAccess>& rNamed, const OUString& rName) const; void exportIndexAccess( - const com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess> aIndexed, + const com::sun::star::uno::Reference<com::sun::star::container::XIndexAccess>& rIndexed, const OUString& rName) const; void exportSymbolDescriptors( diff --git a/include/xmloff/formlayerexport.hxx b/include/xmloff/formlayerexport.hxx index 346e7455e13a..7aaf8a5af969 100644 --- a/include/xmloff/formlayerexport.hxx +++ b/include/xmloff/formlayerexport.hxx @@ -163,7 +163,7 @@ namespace xmloff to the form layer exporter.<br/> Of course you have to do this before calling <member>exportForms</member></p> */ - void excludeFromExport( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel > _rxControl ); + void excludeFromExport( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& _rxControl ); }; diff --git a/include/xmloff/xmlimppr.hxx b/include/xmloff/xmlimppr.hxx index f4b271f3f289..59807ecd0216 100644 --- a/include/xmloff/xmlimppr.hxx +++ b/include/xmloff/xmlimppr.hxx @@ -105,15 +105,15 @@ public: sal_Int32 nStartIndex, sal_Int32 nEndIndex ) const; void CheckSpecialContext( - const ::std::vector< XMLPropertyState >& aProperties, + const ::std::vector< XMLPropertyState >& rProperties, const ::com::sun::star::uno::Reference< - ::com::sun::star::beans::XPropertySet > rPropSet, + ::com::sun::star::beans::XPropertySet >& rPropSet, _ContextID_Index_Pair* pSpecialContextIds ) const; bool FillPropertySet( - const ::std::vector< XMLPropertyState >& aProperties, + const ::std::vector< XMLPropertyState >& rProperties, const ::com::sun::star::uno::Reference< - ::com::sun::star::beans::XPropertySet > rPropSet, + ::com::sun::star::beans::XPropertySet >& rPropSet, _ContextID_Index_Pair* pSpecialContextIds = NULL ) const; void FillPropertySequence( |