[Libreoffice-commits] core.git: accessibility/inc accessibility/source basic/source chart2/source connectivity/source editeng/source extensions/source filter/source framework/inc framework/source include/dbaccess include/oox include/sfx2 include/svx include/xmloff oox/source sdext/source sd/source sfx2/source svx/source xmloff/inc xmloff/source xmlsecurity/source

Caolán McNamara caolanm at redhat.com
Mon Mar 9 05:42:28 PDT 2015


 accessibility/inc/accessibility/extended/accessibleeditbrowseboxcell.hxx |    4 
 accessibility/source/extended/accessibleeditbrowseboxcell.cxx            |    2 
 basic/source/inc/namecont.hxx                                            |   22 +--
 basic/source/inc/scriptcont.hxx                                          |    2 
 basic/source/uno/namecont.cxx                                            |   24 ++--
 basic/source/uno/scriptcont.cxx                                          |    6 -
 chart2/source/view/charttypes/Splines.cxx                                |   12 +-
 chart2/source/view/inc/VLegendSymbolFactory.hxx                          |    2 
 chart2/source/view/main/VLegend.cxx                                      |   16 +-
 chart2/source/view/main/VLegendSymbolFactory.cxx                         |    6 -
 connectivity/source/drivers/dbase/DTable.cxx                             |    8 -
 connectivity/source/drivers/postgresql/pq_xbase.cxx                      |    2 
 connectivity/source/drivers/postgresql/pq_xbase.hxx                      |    2 
 editeng/source/xml/xmltxtexp.cxx                                         |    6 -
 editeng/source/xml/xmltxtimp.cxx                                         |    6 -
 extensions/source/abpilot/admininvokationimpl.cxx                        |    6 -
 extensions/source/abpilot/admininvokationimpl.hxx                        |    2 
 extensions/source/bibliography/framectr.hxx                              |    4 
 extensions/source/propctrlr/eventhandler.cxx                             |    2 
 extensions/source/propctrlr/standardcontrol.cxx                          |    2 
 extensions/source/propctrlr/standardcontrol.hxx                          |    4 
 filter/source/svg/svgexport.cxx                                          |    4 
 filter/source/svg/svgfilter.hxx                                          |    2 
 filter/source/svg/svgreader.cxx                                          |   28 ++--
 framework/inc/stdtypes.h                                                 |   12 +-
 framework/source/layoutmanager/toolbarlayoutmanager.cxx                  |    4 
 framework/source/layoutmanager/toolbarlayoutmanager.hxx                  |    2 
 framework/source/uielement/toolbarmanager.cxx                            |   12 +-
 include/dbaccess/genericcontroller.hxx                                   |    2 
 include/oox/core/xmlfilterbase.hxx                                       |    2 
 include/oox/drawingml/shape.hxx                                          |    2 
 include/oox/export/shapes.hxx                                            |    2 
 include/oox/ppt/pptgraphicshapecontext.hxx                               |    2 
 include/oox/ppt/pptshapecontext.hxx                                      |    2 
 include/oox/ppt/pptshapegroupcontext.hxx                                 |    2 
 include/oox/ppt/presentationfragmenthandler.hxx                          |    4 
 include/oox/ppt/slidepersist.hxx                                         |    6 -
 include/sfx2/sidebar/EnumContext.hxx                                     |    8 -
 include/sfx2/sidebar/Tools.hxx                                           |    4 
 include/svx/PaletteManager.hxx                                           |    2 
 include/svx/SmartTagMgr.hxx                                              |   10 -
 include/svx/lathe3d.hxx                                                  |    2 
 include/svx/shapepropertynotifier.hxx                                    |    2 
 include/svx/svdoashp.hxx                                                 |    2 
 include/svx/svdtrans.hxx                                                 |    6 -
 include/svx/transfrmhelper.hxx                                           |    4 
 include/svx/ucsubset.hxx                                                 |    4 
 include/svx/xexch.hxx                                                    |    2 
 include/xmloff/SchXMLImportHelper.hxx                                    |    4 
 include/xmloff/SettingsExportHelper.hxx                                  |    4 
 include/xmloff/formlayerexport.hxx                                       |    2 
 include/xmloff/xmlimppr.hxx                                              |    8 -
 oox/source/core/xmlfilterbase.cxx                                        |   10 -
 oox/source/docprop/docprophandler.cxx                                    |    6 -
 oox/source/docprop/docprophandler.hxx                                    |    2 
 oox/source/drawingml/diagram/diagramfragmenthandler.cxx                  |    8 -
 oox/source/drawingml/diagram/diagramfragmenthandler.hxx                  |    4 
 oox/source/ppt/extdrawingfragmenthandler.cxx                             |    4 
 oox/source/ppt/extdrawingfragmenthandler.hxx                             |    2 
 oox/source/ppt/pptgraphicshapecontext.cxx                                |    4 
 oox/source/ppt/pptshapecontext.cxx                                       |    4 
 oox/source/ppt/pptshapegroupcontext.cxx                                  |    4 
 oox/source/ppt/presentationfragmenthandler.cxx                           |   16 +-
 sd/source/filter/eppt/pptexanimations.cxx                                |    4 
 sd/source/filter/eppt/pptexanimations.hxx                                |    2 
 sdext/source/presenter/PresenterAccessibility.cxx                        |   32 ++---
 sdext/source/presenter/PresenterScrollBar.cxx                            |    4 
 sdext/source/presenter/PresenterScrollBar.hxx                            |    2 
 sfx2/source/sidebar/DeckLayouter.cxx                                     |   14 +-
 sfx2/source/sidebar/DeckLayouter.hxx                                     |    2 
 sfx2/source/sidebar/DrawHelper.cxx                                       |   24 ++--
 sfx2/source/sidebar/DrawHelper.hxx                                       |    4 
 sfx2/source/sidebar/EnumContext.cxx                                      |   12 +-
 sfx2/source/sidebar/Tools.cxx                                            |   44 +++----
 svx/source/dialog/charmap.cxx                                            |   10 -
 svx/source/dialog/framelink.cxx                                          |    4 
 svx/source/engine3d/lathe3d.cxx                                          |    2 
 svx/source/form/fmtextcontrolshell.cxx                                   |    4 
 svx/source/inc/fmtextcontrolshell.hxx                                    |    2 
 svx/source/inc/xmlxtexp.hxx                                              |    2 
 svx/source/inc/xmlxtimp.hxx                                              |    4 
 svx/source/smarttags/SmartTagMgr.cxx                                     |   10 -
 svx/source/svdraw/svdoashp.cxx                                           |    4 
 svx/source/svdraw/svdotextpathdecomposition.cxx                          |    2 
 svx/source/svdraw/svdtrans.cxx                                           |    6 -
 svx/source/table/cell.cxx                                                |    6 -
 svx/source/tbxctrls/PaletteManager.cxx                                   |    4 
 svx/source/unodraw/shapepropertynotifier.cxx                             |    9 -
 svx/source/xml/xmlxtexp.cxx                                              |    4 
 svx/source/xml/xmlxtimp.cxx                                              |    4 
 svx/source/xoutdev/xexch.cxx                                             |    2 
 xmloff/inc/xmlversion.hxx                                                |    4 
 xmloff/source/chart/SchXMLAxisContext.cxx                                |   14 +-
 xmloff/source/chart/SchXMLExport.cxx                                     |   58 +++++-----
 xmloff/source/chart/SchXMLImport.cxx                                     |    4 
 xmloff/source/core/SettingsExportHelper.cxx                              |   10 -
 xmloff/source/draw/shapeexport.cxx                                       |    4 
 xmloff/source/forms/formlayerexport.cxx                                  |    2 
 xmloff/source/forms/layerexport.cxx                                      |    2 
 xmloff/source/forms/layerexport.hxx                                      |    2 
 xmloff/source/meta/xmlversion.cxx                                        |    8 -
 xmloff/source/style/xmlimppr.cxx                                         |    4 
 xmloff/source/text/txtparae.cxx                                          |   20 +--
 xmloff/source/xforms/xformsapi.cxx                                       |    2 
 xmloff/source/xforms/xformsapi.hxx                                       |    2 
 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx    |    4 
 xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.hxx    |    2 
 xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx        |    4 
 xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.hxx        |    2 
 109 files changed, 362 insertions(+), 365 deletions(-)

New commits:
commit 5a308b1239a09417507b0d05090ff2d3418d5133
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Mon Mar 9 10:11:00 2015 +0000

    V801: Decreased performance
    
    Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a

diff --git a/accessibility/inc/accessibility/extended/accessibleeditbrowseboxcell.hxx b/accessibility/inc/accessibility/extended/accessibleeditbrowseboxcell.hxx
index 241f51e..a8dde90 100644
--- a/accessibility/inc/accessibility/extended/accessibleeditbrowseboxcell.hxx
+++ b/accessibility/inc/accessibility/extended/accessibleeditbrowseboxcell.hxx
@@ -118,8 +118,8 @@ namespace accessibility
     public:
         EditBrowseBoxTableCellAccess(
             const ::com::sun::star::uno::Reference< com::sun::star::accessibility::XAccessible >& _rxParent,
-            const ::com::sun::star::uno::Reference< com::sun::star::accessibility::XAccessible > _xControlAccessible,
-            const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& _xFocusWindow,
+            const ::com::sun::star::uno::Reference< com::sun::star::accessibility::XAccessible >& _rxControlAccessible,
+            const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow >& _rxFocusWindow,
             ::svt::IAccessibleTableProvider& _rBrowseBox,
             sal_Int32 _nRowPos,
             sal_uInt16 _nColPos
diff --git a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx
index 96ee02c..a535109 100644
--- a/accessibility/source/extended/accessibleeditbrowseboxcell.cxx
+++ b/accessibility/source/extended/accessibleeditbrowseboxcell.cxx
@@ -162,7 +162,7 @@ namespace accessibility
 
     // EditBrowseBoxTableCell
     EditBrowseBoxTableCellAccess::EditBrowseBoxTableCellAccess(
-            const Reference< XAccessible >& _rxParent, const Reference< XAccessible > _rxControlAccessible,
+            const Reference< XAccessible >& _rxParent, const Reference< XAccessible >& _rxControlAccessible,
             const Reference< XWindow >& _rxFocusWindow,
             IAccessibleTableProvider& _rBrowseBox, sal_Int32 _nRowPos, sal_uInt16 _nColPos )
         :EditBrowseBoxTableCellAccess_Base( m_aMutex )
diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx
index d699805..c7258f5 100644
--- a/basic/source/inc/namecont.hxx
+++ b/basic/source/inc/namecont.hxx
@@ -261,16 +261,16 @@ protected:
     } meInitMode;
 
     void implStoreLibrary( SfxLibrary* pLib,
-                            const OUString& aName,
-                            const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
+                            const OUString& rName,
+                            const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& rStorage );
 
     // New variant for library export
     void implStoreLibrary( SfxLibrary* pLib,
-                            const OUString& aName,
-                            const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
-                            const OUString& aTargetURL,
-                            const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 > xToUseSFI,
-                            const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& xHandler );
+                            const OUString& rName,
+                            const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& rStorage,
+                            const OUString& rTargetURL,
+                            const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 >& rToUseSFI,
+                            const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& rHandler );
 
     void implStoreLibraryIndexFile( SfxLibrary* pLib, const ::xmlscript::LibDescriptor& rLib,
                                     const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage );
@@ -279,7 +279,7 @@ protected:
     void implStoreLibraryIndexFile( SfxLibrary* pLib, const ::xmlscript::LibDescriptor& rLib,
                                     const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
                                     const OUString& aTargetURL,
-                                    const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 > xToUseSFI );
+                                    const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 >& rToUseSFI );
 
     bool implLoadLibraryIndexFile( SfxLibrary* pLib,
                                     ::xmlscript::LibDescriptor& rLib,
@@ -317,9 +317,9 @@ protected:
 
     // New variant for library export
     virtual bool implStorePasswordLibrary( SfxLibrary* pLib, const OUString& aName,
-                        const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
+                        const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& rStorage,
                         const OUString& aTargetURL,
-                        const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 > xToUseSFI, const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler );
+                        const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 >& rToUseSFI, const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler );
 
     virtual bool implLoadPasswordLibrary( SfxLibrary* pLib, const OUString& Name,
                                           bool bVerifyPasswordOnly=false )
@@ -734,7 +734,7 @@ class ScriptSubPackageIterator
 
     com::sun::star::uno::Reference< com::sun::star::deployment::XPackage >
         implDetectScriptPackage( const com::sun::star::uno::Reference
-            < com::sun::star::deployment::XPackage > xPackage, bool& rbPureDialogLib );
+            < com::sun::star::deployment::XPackage >& rPackage, bool& rbPureDialogLib );
 
 public:
     ScriptSubPackageIterator( com::sun::star::uno::Reference< com::sun::star::deployment::XPackage > xMainPackage );
diff --git a/basic/source/inc/scriptcont.hxx b/basic/source/inc/scriptcont.hxx
index 30c8c62..5b5f496 100644
--- a/basic/source/inc/scriptcont.hxx
+++ b/basic/source/inc/scriptcont.hxx
@@ -70,7 +70,7 @@ class SfxScriptLibraryContainer : public SfxLibraryContainer, public OldBasicPas
     virtual bool implStorePasswordLibrary( SfxLibrary* pLib, const OUString& aName,
                         const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
                         const OUString& aTargetURL,
-                        const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 > xToUseSFI, const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) SAL_OVERRIDE;
+                        const ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XSimpleFileAccess3 >& rToUseSFI, const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& Handler ) SAL_OVERRIDE;
 
     virtual bool implLoadPasswordLibrary( SfxLibrary* pLib, const OUString& Name,
                                           bool bVerifyPasswordOnly=false )
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 20d2dfb..adc6905 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -1365,7 +1365,7 @@ bool SfxLibraryContainer::implStorePasswordLibrary(
     const OUString& /*aName*/,
     const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& /*xStorage*/,
     const OUString& /*aTargetURL*/,
-    const Reference< XSimpleFileAccess3 > /*xToUseSFI*/,
+    const Reference< XSimpleFileAccess3 >& /*xToUseSFI*/,
     const uno::Reference< task::XInteractionHandler >&  )
 {
     return false;
@@ -1421,7 +1421,7 @@ void SfxLibraryContainer::implStoreLibrary( SfxLibrary* pLib,
                                             const OUString& aName,
                                             const uno::Reference< embed::XStorage >& xStorage,
                                             const OUString& aTargetURL,
-                                            Reference< XSimpleFileAccess3 > xToUseSFI,
+                                            const Reference< XSimpleFileAccess3 >& rToUseSFI,
                                             const Reference< XInteractionHandler >& xHandler )
 {
     bool bLink = pLib->mbLink;
@@ -1488,9 +1488,9 @@ void SfxLibraryContainer::implStoreLibrary( SfxLibrary* pLib,
         try
         {
             Reference< XSimpleFileAccess3 > xSFI = mxSFI;
-            if( xToUseSFI.is() )
+            if( rToUseSFI.is() )
             {
-                xSFI = xToUseSFI;
+                xSFI = rToUseSFI;
             }
             OUString aLibDirPath;
             if( bExport )
@@ -1577,7 +1577,7 @@ void SfxLibraryContainer::implStoreLibraryIndexFile( SfxLibrary* pLib,
                                                      const ::xmlscript::LibDescriptor& rLib,
                                                      const uno::Reference< embed::XStorage >& xStorage,
                                                      const OUString& aTargetURL,
-                                                     Reference< XSimpleFileAccess3 > xToUseSFI )
+                                                     const Reference< XSimpleFileAccess3 >& rToUseSFI )
 {
     // Create sax writer
     Reference< XWriter > xWriter = xml::sax::Writer::create(mxContext);
@@ -1622,9 +1622,9 @@ void SfxLibraryContainer::implStoreLibraryIndexFile( SfxLibrary* pLib,
         // Export?
         bool bExport = !aTargetURL.isEmpty();
         Reference< XSimpleFileAccess3 > xSFI = mxSFI;
-        if( xToUseSFI.is() )
+        if( rToUseSFI.is() )
         {
-            xSFI = xToUseSFI;
+            xSFI = rToUseSFI;
         }
         OUString aLibInfoPath;
         if( bExport )
@@ -3420,23 +3420,23 @@ Reference< deployment::XPackage > ScriptSubPackageIterator::getNextScriptSubPack
     return xScriptPackage;
 }
 
-Reference< deployment::XPackage > ScriptSubPackageIterator::implDetectScriptPackage ( const Reference< deployment::XPackage > xPackage,
+Reference< deployment::XPackage > ScriptSubPackageIterator::implDetectScriptPackage ( const Reference< deployment::XPackage >& rPackage,
                                                                                       bool& rbPureDialogLib )
 {
     Reference< deployment::XPackage > xScriptPackage;
 
-    if( xPackage.is() )
+    if( rPackage.is() )
     {
-        const Reference< deployment::XPackageTypeInfo > xPackageTypeInfo = xPackage->getPackageType();
+        const Reference< deployment::XPackageTypeInfo > xPackageTypeInfo = rPackage->getPackageType();
         OUString aMediaType = xPackageTypeInfo->getMediaType();
         if ( aMediaType == sBasicLibMediaType )
         {
-            xScriptPackage = xPackage;
+            xScriptPackage = rPackage;
         }
         else if ( aMediaType == sDialogLibMediaType )
         {
             rbPureDialogLib = true;
-            xScriptPackage = xPackage;
+            xScriptPackage = rPackage;
         }
     }
 
diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx
index 7d67085..a422f2a 100644
--- a/basic/source/uno/scriptcont.cxx
+++ b/basic/source/uno/scriptcont.cxx
@@ -588,7 +588,7 @@ bool SfxScriptLibraryContainer::implStorePasswordLibrary( SfxLibrary* pLib,
 bool SfxScriptLibraryContainer::implStorePasswordLibrary( SfxLibrary* pLib, const OUString& aName,
                                                           const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage,
                                                           const OUString& aTargetURL,
-                                                          const Reference< XSimpleFileAccess3 > xToUseSFI,
+                                                          const Reference< XSimpleFileAccess3 >& rToUseSFI,
                                                           const ::com::sun::star::uno::Reference< ::com::sun::star::task::XInteractionHandler >& xHandler )
 {
     bool bExport = !aTargetURL.isEmpty();
@@ -730,9 +730,9 @@ bool SfxScriptLibraryContainer::implStorePasswordLibrary( SfxLibrary* pLib, cons
         try
         {
             Reference< XSimpleFileAccess3 > xSFI = mxSFI;
-            if( xToUseSFI.is() )
+            if( rToUseSFI.is() )
             {
-                xSFI = xToUseSFI;
+                xSFI = rToUseSFI;
             }
             OUString aLibDirPath;
             if( bExport )
diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx
index 9cba391..c8427a5 100644
--- a/chart2/source/view/charttypes/Splines.cxx
+++ b/chart2/source/view/charttypes/Splines.cxx
@@ -407,11 +407,11 @@ double lcl_SplineCalculation::GetInterpolatedValue( double x )
 // helper methods for B-spline
 
 // Create parameter t_0 to t_n using the centripetal method with a power of 0.5
-bool createParameterT(const tPointVecType aUniquePoints, double* t)
+bool createParameterT(const tPointVecType& rUniquePoints, double* t)
 {   // precondition: no adjacent identical points
     // postcondition: 0 = t_0 < t_1 < ... < t_n = 1
     bool bIsSuccessful = true;
-    const lcl_tSizeType n = aUniquePoints.size() - 1;
+    const lcl_tSizeType n = rUniquePoints.size() - 1;
     t[0]=0.0;
     double dx = 0.0;
     double dy = 0.0;
@@ -419,8 +419,8 @@ bool createParameterT(const tPointVecType aUniquePoints, double* t)
     double fDenominator = 0.0; // initialized for summing up
     for (lcl_tSizeType i=1; i<=n ; ++i)
     {   // 4th root(dx^2+dy^2)
-        dx = aUniquePoints[i].first - aUniquePoints[i-1].first;
-        dy = aUniquePoints[i].second - aUniquePoints[i-1].second;
+        dx = rUniquePoints[i].first - rUniquePoints[i-1].first;
+        dy = rUniquePoints[i].second - rUniquePoints[i-1].second;
         // scaling to avoid underflow or overflow
         fDiffMax = (fabs(dx)>fabs(dy)) ? fabs(dx) : fabs(dy);
         if (fDiffMax == 0.0)
@@ -446,8 +446,8 @@ bool createParameterT(const tPointVecType aUniquePoints, double* t)
             double fNumerator = 0.0;
             for (lcl_tSizeType i=1; i<=j ; ++i)
             {
-                dx = aUniquePoints[i].first - aUniquePoints[i-1].first;
-                dy = aUniquePoints[i].second - aUniquePoints[i-1].second;
+                dx = rUniquePoints[i].first - rUniquePoints[i-1].first;
+                dy = rUniquePoints[i].second - rUniquePoints[i-1].second;
                 fDiffMax = (fabs(dx)>fabs(dy)) ? fabs(dx) : fabs(dy);
                 // same as above, so should not be zero
                 dx /= fDiffMax;
diff --git a/chart2/source/view/inc/VLegendSymbolFactory.hxx b/chart2/source/view/inc/VLegendSymbolFactory.hxx
index 4342d2c..463b68b 100644
--- a/chart2/source/view/inc/VLegendSymbolFactory.hxx
+++ b/chart2/source/view/inc/VLegendSymbolFactory.hxx
@@ -43,7 +43,7 @@ namespace VLegendSymbolFactory
         createSymbol(
             const ::com::sun::star::awt::Size& rEntryKeyAspectRatio,
             const ::com::sun::star::uno::Reference<
-                ::com::sun::star::drawing::XShapes > xSymbolContainer,
+                ::com::sun::star::drawing::XShapes >& rSymbolContainer,
             LegendSymbolStyle eStyle,
             const ::com::sun::star::uno::Reference<
                 ::com::sun::star::lang::XMultiServiceFactory > & xShapeFactory,
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index acf9b48..b7838f4 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -194,13 +194,13 @@ awt::Size lcl_createTextShapes(
     return aResult;
 }
 
-void lcl_collectColumnWidths( std::vector< sal_Int32 >& rColumnWidths, const sal_Int32 nNumberOfRows, const sal_Int32 nNumberOfColumns
-                             , const ::std::vector< Reference< drawing::XShape > > aTextShapes, sal_Int32 nSymbolPlusDistanceWidth )
+void lcl_collectColumnWidths( std::vector< sal_Int32 >& rColumnWidths, const sal_Int32 nNumberOfRows, const sal_Int32 nNumberOfColumns,
+                              const ::std::vector< Reference< drawing::XShape > >& rTextShapes, sal_Int32 nSymbolPlusDistanceWidth )
 {
     rColumnWidths.clear();
     sal_Int32 nRow = 0;
     sal_Int32 nColumn = 0;
-    sal_Int32 nNumberOfEntries = aTextShapes.size();
+    sal_Int32 nNumberOfEntries = rTextShapes.size();
     for( ; nRow < nNumberOfRows; ++nRow )
     {
         for( nColumn = 0; nColumn < nNumberOfColumns; ++nColumn )
@@ -208,7 +208,7 @@ void lcl_collectColumnWidths( std::vector< sal_Int32 >& rColumnWidths, const sal
             sal_Int32 nEntry = (nColumn + nRow * nNumberOfColumns);
             if( nEntry < nNumberOfEntries )
             {
-                awt::Size aTextSize( aTextShapes[ nEntry ]->getSize() );
+                awt::Size aTextSize( rTextShapes[ nEntry ]->getSize() );
                 sal_Int32 nWidth = nSymbolPlusDistanceWidth + aTextSize.Width;
                 if( nRow==0 )
                     rColumnWidths.push_back( nWidth );
@@ -219,15 +219,15 @@ void lcl_collectColumnWidths( std::vector< sal_Int32 >& rColumnWidths, const sal
     }
 }
 
-void lcl_collectRowHeighs( std::vector< sal_Int32 >& rRowHeights, const sal_Int32 nNumberOfRows, const sal_Int32 nNumberOfColumns
-                          , const ::std::vector< Reference< drawing::XShape > > aTextShapes )
+void lcl_collectRowHeighs( std::vector< sal_Int32 >& rRowHeights, const sal_Int32 nNumberOfRows, const sal_Int32 nNumberOfColumns,
+                           const ::std::vector< Reference< drawing::XShape > >& rTextShapes )
 {
     // calculate maximum height for each row
     // and collect column widths
     rRowHeights.clear();
     sal_Int32 nRow = 0;
     sal_Int32 nColumn = 0;
-    sal_Int32 nNumberOfEntries = aTextShapes.size();
+    sal_Int32 nNumberOfEntries = rTextShapes.size();
     for( ; nRow < nNumberOfRows; ++nRow )
     {
         sal_Int32 nCurrentRowHeight = 0;
@@ -236,7 +236,7 @@ void lcl_collectRowHeighs( std::vector< sal_Int32 >& rRowHeights, const sal_Int3
             sal_Int32 nEntry = (nColumn + nRow * nNumberOfColumns);
             if( nEntry < nNumberOfEntries )
             {
-                awt::Size aTextSize( aTextShapes[ nEntry ]->getSize() );
+                awt::Size aTextSize( rTextShapes[ nEntry ]->getSize() );
                 nCurrentRowHeight = ::std::max( nCurrentRowHeight, aTextSize.Height );
             }
         }
diff --git a/chart2/source/view/main/VLegendSymbolFactory.cxx b/chart2/source/view/main/VLegendSymbolFactory.cxx
index cd3fb81..aff64eb 100644
--- a/chart2/source/view/main/VLegendSymbolFactory.cxx
+++ b/chart2/source/view/main/VLegendSymbolFactory.cxx
@@ -99,7 +99,7 @@ namespace chart
 
 Reference< drawing::XShape > VLegendSymbolFactory::createSymbol(
     const awt::Size& rEntryKeyAspectRatio,
-    const Reference< drawing::XShapes > xSymbolContainer,
+    const Reference< drawing::XShapes >& rSymbolContainer,
     LegendSymbolStyle eStyle,
     const Reference< lang::XMultiServiceFactory > & xShapeFactory,
     const Reference< beans::XPropertySet > & xLegendEntryProperties,
@@ -107,11 +107,11 @@ Reference< drawing::XShape > VLegendSymbolFactory::createSymbol(
 {
     Reference< drawing::XShape > xResult;
 
-    if( ! (xSymbolContainer.is() && xShapeFactory.is()))
+    if( ! (rSymbolContainer.is() && xShapeFactory.is()))
         return xResult;
 
     AbstractShapeFactory* pShapeFactory = AbstractShapeFactory::getOrCreateShapeFactory(xShapeFactory);
-    xResult.set( pShapeFactory->createGroup2D( xSymbolContainer ), uno::UNO_QUERY );
+    xResult.set( pShapeFactory->createGroup2D( rSymbolContainer ), uno::UNO_QUERY );
 
     Reference< drawing::XShapes > xResultGroup( xResult, uno::UNO_QUERY );
     if( ! xResultGroup.is())
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index 8df0a2b..8313889 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -93,14 +93,14 @@ sal_Size lcl_getFileSize(SvStream& _rStream)
 /**
     calculates the Julian date
 */
-void lcl_CalcJulDate(sal_Int32& _nJulianDate,sal_Int32& _nJulianTime,const com::sun::star::util::DateTime _aDateTime)
+void lcl_CalcJulDate(sal_Int32& _nJulianDate,sal_Int32& _nJulianTime, const com::sun::star::util::DateTime& rDateTime)
 {
-    com::sun::star::util::DateTime aDateTime = _aDateTime;
+    com::sun::star::util::DateTime aDateTime = rDateTime;
     // weird: months fix
     if (aDateTime.Month > 12)
     {
         aDateTime.Month--;
-        sal_uInt16 delta = _aDateTime.Month / 12;
+        sal_uInt16 delta = rDateTime.Month / 12;
         aDateTime.Year += delta;
         aDateTime.Month -= delta * 12;
         aDateTime.Month++;
@@ -128,7 +128,7 @@ void lcl_CalcJulDate(sal_Int32& _nJulianDate,sal_Int32& _nJulianTime,const com::
         _nJulianDate = (sal_Int32) ((365.25 * iy0) - 0.75)
             + (sal_Int32) (30.6001 * (im0 + 1) )
             + aDateTime.Day + 1720994;
-    } // if ( _aDateTime.Year <= 0 )
+    } // if ( rDateTime.Year <= 0 )
     else
     {
         _nJulianDate = static_cast<sal_Int32>( ((365.25 * iy0)
diff --git a/connectivity/source/drivers/postgresql/pq_xbase.cxx b/connectivity/source/drivers/postgresql/pq_xbase.cxx
index 87e5477..5ae9d45 100644
--- a/connectivity/source/drivers/postgresql/pq_xbase.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xbase.cxx
@@ -61,7 +61,7 @@ namespace pq_sdbc_driver
 ReflectionBase::ReflectionBase(
     const OUString &implName,
     const ::com::sun::star::uno::Sequence< OUString > &supportedServices,
-    const ::rtl::Reference< RefCountedMutex > refMutex,
+    const ::rtl::Reference< RefCountedMutex >& refMutex,
     const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > &conn,
     ConnectionSettings *pSettings,
     cppu::IPropertyArrayHelper & props /* must survive this object !*/ )
diff --git a/connectivity/source/drivers/postgresql/pq_xbase.hxx b/connectivity/source/drivers/postgresql/pq_xbase.hxx
index d9a9cf0..3603fcd 100644
--- a/connectivity/source/drivers/postgresql/pq_xbase.hxx
+++ b/connectivity/source/drivers/postgresql/pq_xbase.hxx
@@ -66,7 +66,7 @@ public:
     ReflectionBase(
         const OUString &implName,
         const ::com::sun::star::uno::Sequence< OUString > &supportedServices,
-        const ::rtl::Reference< RefCountedMutex > refMutex,
+        const ::rtl::Reference< RefCountedMutex >& refMutex,
         const ::com::sun::star::uno::Reference< com::sun::star::sdbc::XConnection > &conn,
         ConnectionSettings *pSettings,
         cppu::IPropertyArrayHelper & props /* must survive this object !*/ );
diff --git a/editeng/source/xml/xmltxtexp.cxx b/editeng/source/xml/xmltxtexp.cxx
index dbec0da..49196c4 100644
--- a/editeng/source/xml/xmltxtexp.cxx
+++ b/editeng/source/xml/xmltxtexp.cxx
@@ -345,11 +345,11 @@ class SvxXMLTextExportComponent : public SvXMLExport
 {
 public:
     SvxXMLTextExportComponent(
-        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
         EditEngine* pEditEngine,
         const ESelection& rSel,
         const OUString& rFileName,
-        const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler > & xHandler );
+        const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler >& rHandler );
 
     virtual ~SvxXMLTextExportComponent();
 
@@ -366,7 +366,7 @@ private:
 
 
 SvxXMLTextExportComponent::SvxXMLTextExportComponent(
-    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
     EditEngine* pEditEngine,
     const ESelection& rSel,
     const OUString& rFileName,
diff --git a/editeng/source/xml/xmltxtimp.cxx b/editeng/source/xml/xmltxtimp.cxx
index 9b92ab7..716133c 100644
--- a/editeng/source/xml/xmltxtimp.cxx
+++ b/editeng/source/xml/xmltxtimp.cxx
@@ -109,8 +109,8 @@ class SvxXMLXTextImportComponent : public SvXMLImport
 {
 public:
     SvxXMLXTextImportComponent(
-        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
-        const uno::Reference< XText > & xText );
+        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
+        const uno::Reference< XText > & rText );
 
     virtual ~SvxXMLXTextImportComponent() throw ();
 
@@ -121,7 +121,7 @@ private:
 
 
 SvxXMLXTextImportComponent::SvxXMLXTextImportComponent(
-    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
     const uno::Reference< XText > & xText )
 :   SvXMLImport(xContext, ""),
     mxText( xText )
diff --git a/extensions/source/abpilot/admininvokationimpl.cxx b/extensions/source/abpilot/admininvokationimpl.cxx
index 424ef33..119f0f2 100644
--- a/extensions/source/abpilot/admininvokationimpl.cxx
+++ b/extensions/source/abpilot/admininvokationimpl.cxx
@@ -46,11 +46,11 @@ namespace abp
     //= OAdminDialogInvokation
 
 
-    OAdminDialogInvokation::OAdminDialogInvokation(const Reference< XComponentContext >& _rxContext
-                    , const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > _xDataSource
+    OAdminDialogInvokation::OAdminDialogInvokation(const Reference< XComponentContext >& _rxContext,
+                    const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxDataSource
                     , vcl::Window* _pMessageParent)
         :m_xContext(_rxContext)
-        ,m_xDataSource(_xDataSource)
+        ,m_xDataSource(_rxDataSource)
         ,m_pMessageParent(_pMessageParent)
     {
         DBG_ASSERT(m_xContext.is(), "OAdminDialogInvokation::OAdminDialogInvokation: invalid service factory!");
diff --git a/extensions/source/abpilot/admininvokationimpl.hxx b/extensions/source/abpilot/admininvokationimpl.hxx
index e71b5ec..486223c 100644
--- a/extensions/source/abpilot/admininvokationimpl.hxx
+++ b/extensions/source/abpilot/admininvokationimpl.hxx
@@ -41,7 +41,7 @@ namespace abp
     public:
         OAdminDialogInvokation(
             const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext,
-            const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > _xDataSource,
+            const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rDataSource,
             vcl::Window* _pMessageParent
         );
 
diff --git a/extensions/source/bibliography/framectr.hxx b/extensions/source/bibliography/framectr.hxx
index 3457d59..0319560 100644
--- a/extensions/source/bibliography/framectr.hxx
+++ b/extensions/source/bibliography/framectr.hxx
@@ -42,9 +42,9 @@ class BibStatusDispatch
 public:
     ::com::sun::star::util::URL                 aURL;
     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >    xListener;
-                        BibStatusDispatch( const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >  xRef )
+                        BibStatusDispatch( const ::com::sun::star::util::URL& rURL, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& rRef )
                             : aURL( rURL )
-                            , xListener( xRef )
+                            , xListener( rRef )
                         {}
 };
 
diff --git a/extensions/source/propctrlr/eventhandler.cxx b/extensions/source/propctrlr/eventhandler.cxx
index 4ea25f7..10c485c 100644
--- a/extensions/source/propctrlr/eventhandler.cxx
+++ b/extensions/source/propctrlr/eventhandler.cxx
@@ -308,7 +308,7 @@ namespace pcr
                 ::std::insert_iterator< TypeBag >( _out_rTypes, _out_rTypes.begin() ) );
         }
 
-        bool operator ==( const ScriptEventDescriptor _lhs, const ScriptEventDescriptor _rhs )
+        bool operator ==( const ScriptEventDescriptor& _lhs, const ScriptEventDescriptor& _rhs )
         {
             return  (   ( _lhs.ListenerType         == _rhs.ListenerType        )
                     &&  ( _lhs.EventMethod          == _rhs.EventMethod         )
diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index bb78921..bac8e56 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -387,7 +387,7 @@ namespace pcr
     }
 
 
-    void HyperlinkInput::impl_checkEndClick( const ::MouseEvent rMEvt )
+    void HyperlinkInput::impl_checkEndClick( const ::MouseEvent& rMEvt )
     {
         const MouseSettings& rMouseSettings( GetSettings().GetMouseSettings() );
         if  (   ( std::abs( rMEvt.GetPosPixel().X() - m_aMouseButtonDownPos.X() ) < rMouseSettings.GetStartDragWidth() )
diff --git a/extensions/source/propctrlr/standardcontrol.hxx b/extensions/source/propctrlr/standardcontrol.hxx
index a78b43e..8c80714 100644
--- a/extensions/source/propctrlr/standardcontrol.hxx
+++ b/extensions/source/propctrlr/standardcontrol.hxx
@@ -184,8 +184,8 @@ namespace pcr
         virtual void        Tracking( const TrackingEvent& rTEvt ) SAL_OVERRIDE;
 
     private:
-        void    impl_checkEndClick( const MouseEvent rMEvt );
-        bool    impl_textHitTest( const Point& _rWindowPos );
+        void    impl_checkEndClick( const MouseEvent& rMEvt );
+        bool    impl_textHitTest( const Point& rWindowPos );
     };
 
 
diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx
index db8a76c..efe3e8c 100644
--- a/filter/source/svg/svgexport.cxx
+++ b/filter/source/svg/svgexport.cxx
@@ -317,11 +317,11 @@ bool operator==( const TextField & aLhsTextField, const TextField & aRhsTextFiel
 
 
 SVGExport::SVGExport(
-    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
     const Reference< XDocumentHandler >& rxHandler,
     const Sequence< PropertyValue >& rFilterData )
     : SvXMLExport( util::MeasureUnit::MM_100TH,
-                   xContext, "",
+                   rContext, "",
                    xmloff::token::XML_TOKEN_INVALID,
                    SvXMLExportFlags::META|SvXMLExportFlags::PRETTY )
 {
diff --git a/filter/source/svg/svgfilter.hxx b/filter/source/svg/svgfilter.hxx
index e42fbb1..dfb3763 100644
--- a/filter/source/svg/svgfilter.hxx
+++ b/filter/source/svg/svgfilter.hxx
@@ -98,7 +98,7 @@ class SVGExport : public SvXMLExport
 
 public:
 
-    SVGExport( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+    SVGExport( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
                 const Reference< XDocumentHandler >& rxHandler,
                 const Sequence< PropertyValue >& rFilterData );
 
diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx
index bf1ae76..de9780f 100644
--- a/filter/source/svg/svgreader.cxx
+++ b/filter/source/svg/svgreader.cxx
@@ -59,10 +59,10 @@ namespace
 /** visits all children of the specified type with the given functor
  */
 template<typename Func> void visitChildren(const Func& rFunc,
-                                           const uno::Reference<xml::dom::XElement> xElem,
+                                           const uno::Reference<xml::dom::XElement>& rElem,
                                            xml::dom::NodeType eChildType )
 {
-    uno::Reference<xml::dom::XNodeList> xChildren( xElem->getChildNodes() );
+    uno::Reference<xml::dom::XNodeList> xChildren( rElem->getChildNodes() );
     const sal_Int32 nNumNodes( xChildren->getLength() );
     for( sal_Int32 i=0; i<nNumNodes; ++i )
     {
@@ -78,22 +78,22 @@ template<typename Func> void visitChildren(const Func& rFunc,
     element's attributes, if any
  */
 template<typename Func> void visitElements(Func& rFunc,
-                                           const uno::Reference<xml::dom::XElement> xElem,
+                                           const uno::Reference<xml::dom::XElement>& rElem,
                                            SvgiVisitorCaller eCaller)
 {
-    if( xElem->hasAttributes() )
-        rFunc(xElem,xElem->getAttributes());
+    if( rElem->hasAttributes() )
+        rFunc(rElem, rElem->getAttributes());
     else
-        rFunc(xElem);
+        rFunc(rElem);
 
     // notify children processing
     rFunc.push();
 
     // recurse over children
-    if (eCaller == SHAPE_WRITER && xElem->getTagName() == "defs") {
+    if (eCaller == SHAPE_WRITER && rElem->getTagName() == "defs") {
         return;
     }
-    uno::Reference<xml::dom::XNodeList> xChildren( xElem->getChildNodes() );
+    uno::Reference<xml::dom::XNodeList> xChildren( rElem->getChildNodes() );
     const sal_Int32 nNumNodes( xChildren->getLength() );
     for( sal_Int32 i=0; i<nNumNodes; ++i )
     {
@@ -1173,11 +1173,11 @@ struct AnnotatingVisitor
 static void annotateStyles( StatePool&                                        rStatePool,
                             StateMap&                                         rStateMap,
                             const State&                                       rInitialState,
-                            const uno::Reference<xml::dom::XElement>          xElem,
+                            const uno::Reference<xml::dom::XElement>&         rElem,
                             const uno::Reference<xml::sax::XDocumentHandler>& xDocHdl )
 {
     AnnotatingVisitor aVisitor(rStatePool,rStateMap,rInitialState,xDocHdl);
-    visitElements(aVisitor, xElem, STYLE_ANNOTATOR);
+    visitElements(aVisitor, rElem, STYLE_ANNOTATOR);
 }
 
 struct ShapeWritingVisitor
@@ -1716,11 +1716,11 @@ struct ShapeWritingVisitor
 /// Write out shapes from DOM tree
 static void writeShapes( StatePool&                                        rStatePool,
                          StateMap&                                         rStateMap,
-                         const uno::Reference<xml::dom::XElement>          xElem,
+                         const uno::Reference<xml::dom::XElement>&         rElem,
                          const uno::Reference<xml::sax::XDocumentHandler>& xDocHdl )
 {
     ShapeWritingVisitor aVisitor(rStatePool,rStateMap,xDocHdl);
-    visitElements(aVisitor, xElem, SHAPE_WRITER);
+    visitElements(aVisitor, rElem, SHAPE_WRITER);
 }
 
 } // namespace
@@ -1832,11 +1832,11 @@ struct OfficeStylesWritingVisitor
 };
 
 static void writeOfficeStyles(  StateMap&                                         rStateMap,
-                                const uno::Reference<xml::dom::XElement>          xElem,
+                                const uno::Reference<xml::dom::XElement>&         rElem,
                                 const uno::Reference<xml::sax::XDocumentHandler>& xDocHdl )
 {
     OfficeStylesWritingVisitor aVisitor( rStateMap, xDocHdl );
-    visitElements( aVisitor, xElem, STYLE_WRITER );
+    visitElements( aVisitor, rElem, STYLE_WRITER );
 }
 
 #if OSL_DEBUG_LEVEL > 2
diff --git a/framework/inc/stdtypes.h b/framework/inc/stdtypes.h
index f0df075..6760033 100644
--- a/framework/inc/stdtypes.h
+++ b/framework/inc/stdtypes.h
@@ -67,14 +67,14 @@ struct KeyEventHashCode
 
 struct KeyEventEqualsFunc
 {
-    bool operator()(const css::awt::KeyEvent aKey1,
-                    const css::awt::KeyEvent aKey2) const
+    bool operator()(const css::awt::KeyEvent& rKey1,
+                    const css::awt::KeyEvent& rKey2) const
     {
         return (
-                (aKey1.KeyCode   == aKey2.KeyCode  ) &&
-                //(aKey1.KeyChar   == aKey2.KeyChar  ) &&
-                //(aKey1.KeyFunc   == aKey2.KeyFunc  ) &&
-                (aKey1.Modifiers == aKey2.Modifiers)
+                (rKey1.KeyCode   == rKey2.KeyCode  ) &&
+                //(rKey1.KeyChar   == rKey2.KeyChar  ) &&
+                //(rKey1.KeyFunc   == rKey2.KeyFunc  ) &&
+                (rKey1.Modifiers == rKey2.Modifiers)
                );
     }
 };
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx
index 4a793dd..f40b98d 100644
--- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx
+++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx
@@ -1048,10 +1048,10 @@ void ToolbarLayoutManager::setParentWindow(
     }
 }
 
-void ToolbarLayoutManager::setDockingAreaOffsets( const ::Rectangle aOffsets )
+void ToolbarLayoutManager::setDockingAreaOffsets( const ::Rectangle& rOffsets )
 {
     SolarMutexGuard g;
-    m_aDockingAreaOffsets = aOffsets;
+    m_aDockingAreaOffsets = rOffsets;
     m_bLayoutDirty        = true;
 }
 
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.hxx b/framework/source/layoutmanager/toolbarlayoutmanager.hxx
index a4aca8f..50433e0 100644
--- a/framework/source/layoutmanager/toolbarlayoutmanager.hxx
+++ b/framework/source/layoutmanager/toolbarlayoutmanager.hxx
@@ -84,7 +84,7 @@ class ToolbarLayoutManager : public ::cppu::WeakImplHelper3< ::com::sun::star::a
                      const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameAccess >& xPersistentWindowState );
 
         void setParentWindow( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& xParentWindow );
-        void setDockingAreaOffsets( const ::Rectangle aOffsets );
+        void setDockingAreaOffsets(const ::Rectangle& rOffsets);
 
         void resetDockingArea();
 
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx
index 0cfc909..85ddc81 100644
--- a/framework/source/uielement/toolbarmanager.cxx
+++ b/framework/source/uielement/toolbarmanager.cxx
@@ -109,9 +109,9 @@ static const sal_uInt16 STARTID_CUSTOMIZE_POPUPMENU = 1000;
 class ImageOrientationListener : public svt::FrameStatusListener
 {
     public:
-        ImageOrientationListener( const Reference< XStatusListener > rReceiver,
-                                  const Reference< XComponentContext > rxContext,
-                                  const Reference< XFrame > rFrame );
+        ImageOrientationListener( const Reference< XStatusListener >& rReceiver,
+                                  const Reference< XComponentContext >& rxContext,
+                                  const Reference< XFrame >& rFrame );
         virtual ~ImageOrientationListener();
 
         virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
@@ -121,9 +121,9 @@ class ImageOrientationListener : public svt::FrameStatusListener
 };
 
 ImageOrientationListener::ImageOrientationListener(
-    const Reference< XStatusListener > rReceiver,
-    const Reference< XComponentContext > rxContext,
-    const Reference< XFrame > rFrame ) :
+    const Reference< XStatusListener >& rReceiver,
+    const Reference< XComponentContext >& rxContext,
+    const Reference< XFrame >& rFrame ) :
     FrameStatusListener( rxContext, rFrame ),
     m_xReceiver( rReceiver )
 {
diff --git a/include/dbaccess/genericcontroller.hxx b/include/dbaccess/genericcontroller.hxx
index 0a02ef7..5c6a659 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 a28af86..c4e4b56 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 052d60c..7d95188 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 5162200..bca9ca6 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 a72721e..827cfe5 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 00c87cf..11514f7 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 5cae54d..07947fb 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 998d0c0..b4b10bc 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 db4f7e6..91cd49b 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 2918537..80e8228 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 0df6d17..3aff9ea 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 bde6a77..7af989c 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 631de96..321c705 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 b2138c5..87f2fa7 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 1d2147a..ac0ac3f 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 513813d..4194b2d 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 f2e1591..c37ac4f 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 71affa7..d5f293d 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 a2a8a7e..ccdc3d9 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 0154adf..cba949d 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 b4dd0e5..e96b500 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 346a20c..32677e0 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 346e745..7aaf8a5 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 f4b271f..59807ec 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(
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index aeb013f..bf83931 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -460,7 +460,7 @@ TextFieldStack& XmlFilterBase::getTextFieldStack() const
 
 namespace {
 
-OUString lclAddRelation( const Reference< XRelationshipAccess > xRelations, sal_Int32 nId, const OUString& rType, const OUString& rTarget, bool bExternal )
+OUString lclAddRelation( const Reference< XRelationshipAccess >& rRelations, sal_Int32 nId, const OUString& rType, const OUString& rTarget, bool bExternal )
 {
     OUString sId = OUStringBuffer().appendAscii( "rId" ).append( nId ).makeStringAndClear();
 
@@ -474,7 +474,7 @@ OUString lclAddRelation( const Reference< XRelationshipAccess > xRelations, sal_
         aEntry[2].First = "TargetMode";
         aEntry[2].Second = "External";
     }
-    xRelations->insertRelationshipByID( sId, aEntry, sal_True );
+    rRelations->insertRelationshipByID( sId, aEntry, sal_True );
 
     return sId;
 }
@@ -490,17 +490,17 @@ OUString XmlFilterBase::addRelation( const OUString& rType, const OUString& rTar
     return OUString();
 }
 
-OUString XmlFilterBase::addRelation( const Reference< XOutputStream > xOutputStream, const OUString& rType, const OUString& rTarget, bool bExternal )
+OUString XmlFilterBase::addRelation( const Reference< XOutputStream >& rOutputStream, const OUString& rType, const OUString& rTarget, bool bExternal )
 {
     sal_Int32 nId = 0;
 
-    PropertySet aPropSet( xOutputStream );
+    PropertySet aPropSet( rOutputStream );
     if( aPropSet.is() )
         aPropSet.getProperty( nId, PROP_RelId );
     else
         nId = mnRelId++;
 
-    Reference< XRelationshipAccess > xRelations( xOutputStream, UNO_QUERY );
+    Reference< XRelationshipAccess > xRelations( rOutputStream, UNO_QUERY );
     if( xRelations.is() )
         return lclAddRelation( xRelations, nId, rType, rTarget, bExternal );
 
diff --git a/oox/source/docprop/docprophandler.cxx b/oox/source/docprop/docprophandler.cxx
index 428ecd5..4d04f50 100644
--- a/oox/source/docprop/docprophandler.cxx
+++ b/oox/source/docprop/docprophandler.cxx
@@ -38,15 +38,15 @@ namespace oox {
 namespace docprop {
 
 OOXMLDocPropHandler::OOXMLDocPropHandler( const uno::Reference< uno::XComponentContext >& xContext,
-                                          const uno::Reference< document::XDocumentProperties > xDocProp )
+                                          const uno::Reference< document::XDocumentProperties >& rDocProp )
     : m_xContext( xContext )
-    , m_xDocProp( xDocProp )
+    , m_xDocProp( rDocProp )
     , m_nState( 0 )
     , m_nBlock( 0 )
     , m_nType( 0 )
     , m_nInBlock( 0 )
 {
-    if ( !xContext.is() || !xDocProp.is() )
+    if ( !xContext.is() || !rDocProp.is() )
         throw uno::RuntimeException();
 }
 
diff --git a/oox/source/docprop/docprophandler.hxx b/oox/source/docprop/docprophandler.hxx
index e73a474..2813dcb 100644
--- a/oox/source/docprop/docprophandler.hxx
+++ b/oox/source/docprop/docprophandler.hxx
@@ -53,7 +53,7 @@ class OOXMLDocPropHandler : public ::cppu::WeakImplHelper1< ::com::sun::star::xm
     OUString m_aCustomPropertyName;
 
 public:
-    explicit            OOXMLDocPropHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext, const ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentProperties > xDocProp );
+    explicit            OOXMLDocPropHandler( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext, const ::com::sun::star::uno::Reference< ::com::sun::star::document::XDocumentProperties >& rDocProp );
 
     virtual             ~OOXMLDocPropHandler();
 
diff --git a/oox/source/drawingml/diagram/diagramfragmenthandler.cxx b/oox/source/drawingml/diagram/diagramfragmenthandler.cxx
index f1c3cb7..9105e9e 100644
--- a/oox/source/drawingml/diagram/diagramfragmenthandler.cxx
+++ b/oox/source/drawingml/diagram/diagramfragmenthandler.cxx
@@ -32,10 +32,10 @@ namespace oox { namespace drawingml {
 
 DiagramDataFragmentHandler::DiagramDataFragmentHandler( XmlFilterBase& rFilter,
                                                         const OUString& rFragmentPath,
-                                                        const DiagramDataPtr pDataPtr )
+                                                        const DiagramDataPtr& rDataPtr )
     throw( )
     : FragmentHandler2( rFilter, rFragmentPath )
-    , mpDataPtr( pDataPtr )
+    , mpDataPtr( rDataPtr )
 {
 }
 
@@ -67,10 +67,10 @@ DiagramDataFragmentHandler::onCreateContext( ::sal_Int32 aElement,
 
 DiagramLayoutFragmentHandler::DiagramLayoutFragmentHandler( XmlFilterBase& rFilter,
                                                         const OUString& rFragmentPath,
-                                                        const DiagramLayoutPtr pDataPtr )
+                                                        const DiagramLayoutPtr& rDataPtr )
     throw( )
     : FragmentHandler2( rFilter, rFragmentPath )
-    , mpDataPtr( pDataPtr )
+    , mpDataPtr( rDataPtr )
 {
 }
 
diff --git a/oox/source/drawingml/diagram/diagramfragmenthandler.hxx b/oox/source/drawingml/diagram/diagramfragmenthandler.hxx
index c5e8e4b..d882240 100644
--- a/oox/source/drawingml/diagram/diagramfragmenthandler.hxx
+++ b/oox/source/drawingml/diagram/diagramfragmenthandler.hxx
@@ -28,7 +28,7 @@ namespace oox { namespace drawingml {
 class DiagramDataFragmentHandler : public ::oox::core::FragmentHandler2
 {
 public:
-    DiagramDataFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath, const DiagramDataPtr pDataPtr ) throw();
+    DiagramDataFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath, const DiagramDataPtr& rDataPtr ) throw();
     virtual ~DiagramDataFragmentHandler() throw();
 
     virtual void SAL_CALL endDocument() throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
@@ -42,7 +42,7 @@ private:
 class DiagramLayoutFragmentHandler : public ::oox::core::FragmentHandler2
 {
 public:
-    DiagramLayoutFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath, const DiagramLayoutPtr pDataPtr ) throw();
+    DiagramLayoutFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath, const DiagramLayoutPtr& rDataPtr ) throw();
     virtual ~DiagramLayoutFragmentHandler() throw();
 
     virtual void SAL_CALL endDocument() throw (::com::sun::star::xml::sax::SAXException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/oox/source/ppt/extdrawingfragmenthandler.cxx b/oox/source/ppt/extdrawingfragmenthandler.cxx
index d2b892f..d7a77ac 100644
--- a/oox/source/ppt/extdrawingfragmenthandler.cxx
+++ b/oox/source/ppt/extdrawingfragmenthandler.cxx
@@ -17,14 +17,14 @@ namespace oox { namespace ppt {
 
 ExtDrawingFragmentHandler::ExtDrawingFragmentHandler( XmlFilterBase& rFilter,
                                                         const OUString& rFragmentPath,
-        const oox::ppt::SlidePersistPtr pSlidePersistPtr,
+        const oox::ppt::SlidePersistPtr& rSlidePersistPtr,
         const oox::ppt::ShapeLocation   eShapeLocation,
         oox::drawingml::ShapePtr        pMasterShapePtr,
         oox::drawingml::ShapePtr        pGroupShapePtr,
         oox::drawingml::ShapePtr        pShapePtr)
     throw( )
     : FragmentHandler2( rFilter, rFragmentPath ),
-     mpSlidePersistPtr (pSlidePersistPtr ),
+     mpSlidePersistPtr (rSlidePersistPtr ),
      meShapeLocation( eShapeLocation ),
      mpMasterShapePtr( pMasterShapePtr ),
      mpGroupShapePtr( pGroupShapePtr ),
diff --git a/oox/source/ppt/extdrawingfragmenthandler.hxx b/oox/source/ppt/extdrawingfragmenthandler.hxx
index 3512ca9..fdfdc0c 100644
--- a/oox/source/ppt/extdrawingfragmenthandler.hxx
+++ b/oox/source/ppt/extdrawingfragmenthandler.hxx
@@ -22,7 +22,7 @@ class ExtDrawingFragmentHandler : public ::oox::core::FragmentHandler2
 {
 public:
     ExtDrawingFragmentHandler( oox::core::XmlFilterBase& rFilter, const OUString& rFragmentPath,
-        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/oox/source/ppt/pptgraphicshapecontext.cxx b/oox/source/ppt/pptgraphicshapecontext.cxx
index c31cc55..36f5d76 100644
--- a/oox/source/ppt/pptgraphicshapecontext.cxx
+++ b/oox/source/ppt/pptgraphicshapecontext.cxx
@@ -47,9 +47,9 @@ using namespace ::com::sun::star::xml::sax;
 namespace oox { namespace ppt {
 
 // CT_Shape
-PPTGraphicShapeContext::PPTGraphicShapeContext( ContextHandler2Helper& rParent, const SlidePersistPtr pSlidePersistPtr, oox::drawingml::ShapePtr pMasterShapePtr, oox::drawingml::ShapePtr pShapePtr )
+PPTGraphicShapeContext::PPTGraphicShapeContext( ContextHandler2Helper& rParent, const SlidePersistPtr& rSlidePersistPtr, oox::drawingml::ShapePtr pMasterShapePtr, oox::drawingml::ShapePtr pShapePtr )
 : oox::drawingml::GraphicShapeContext( rParent, pMasterShapePtr, pShapePtr )
-, mpSlidePersistPtr( pSlidePersistPtr )
+, mpSlidePersistPtr( rSlidePersistPtr )
 {
 }
 
diff --git a/oox/source/ppt/pptshapecontext.cxx b/oox/source/ppt/pptshapecontext.cxx
index e5e0fce..935fdec 100644
--- a/oox/source/ppt/pptshapecontext.cxx
+++ b/oox/source/ppt/pptshapecontext.cxx
@@ -47,9 +47,9 @@ using namespace ::com::sun::star::xml::sax;
 namespace oox { namespace ppt {
 
 // CT_Shape
-PPTShapeContext::PPTShapeContext( ContextHandler2Helper& rParent, const SlidePersistPtr pSlidePersistPtr, oox::drawingml::ShapePtr pMasterShapePtr, oox::drawingml::ShapePtr pShapePtr )
+PPTShapeContext::PPTShapeContext( ContextHandler2Helper& rParent, const SlidePersistPtr& rSlidePersistPtr, oox::drawingml::ShapePtr pMasterShapePtr, oox::drawingml::ShapePtr pShapePtr )
 : oox::drawingml::ShapeContext( rParent, pMasterShapePtr, pShapePtr )
-, mpSlidePersistPtr( pSlidePersistPtr )
+, mpSlidePersistPtr( rSlidePersistPtr )
 {
 }
 
diff --git a/oox/source/ppt/pptshapegroupcontext.cxx b/oox/source/ppt/pptshapegroupcontext.cxx
index 975906d..05044ca 100644
--- a/oox/source/ppt/pptshapegroupcontext.cxx
+++ b/oox/source/ppt/pptshapegroupcontext.cxx
@@ -49,12 +49,12 @@ namespace oox { namespace ppt {
 
 PPTShapeGroupContext::PPTShapeGroupContext(
         ContextHandler2Helper& rParent,
-        const oox::ppt::SlidePersistPtr pSlidePersistPtr,
+        const oox::ppt::SlidePersistPtr& rSlidePersistPtr,
         const ShapeLocation eShapeLocation,
         oox::drawingml::ShapePtr pMasterShapePtr,
         oox::drawingml::ShapePtr pGroupShapePtr )
 : ShapeGroupContext( rParent, pMasterShapePtr, pGroupShapePtr )
-, mpSlidePersistPtr( pSlidePersistPtr )
+, mpSlidePersistPtr( rSlidePersistPtr )
 , meShapeLocation( eShapeLocation )
 , pGraphicShape( (PPTShape *)NULL )
 {
diff --git a/oox/source/ppt/presentationfragmenthandler.cxx b/oox/source/ppt/presentationfragmenthandler.cxx
index 541e2a1..1d06a5b 100644
--- a/oox/source/ppt/presentationfragmenthandler.cxx
+++ b/oox/source/ppt/presentationfragmenthandler.cxx
@@ -460,10 +460,10 @@ void PresentationFragmentHandler::finalizeImport()
 }
 
 bool PresentationFragmentHandler::importSlide( const FragmentHandlerRef& rxSlideFragmentHandler,
-        const SlidePersistPtr pSlidePersistPtr )
+        const SlidePersistPtr& rSlidePersistPtr )
 {
-    Reference< drawing::XDrawPage > xSlide( pSlidePersistPtr->getPage() );
-    SlidePersistPtr pMasterPersistPtr( pSlidePersistPtr->getMasterPersist() );
+    Reference< drawing::XDrawPage > xSlide( rSlidePersistPtr->getPage() );
+    SlidePersistPtr pMasterPersistPtr( rSlidePersistPtr->getMasterPersist() );
     if ( pMasterPersistPtr.get() )
     {
         // Setting "Layout" property adds extra title and outliner preset shapes to the master slide
@@ -491,16 +491,16 @@ bool PresentationFragmentHandler::importSlide( const FragmentHandlerRef& rxSlide
     Reference< XPropertySet > xPropertySet( xSlide, UNO_QUERY );
     if ( xPropertySet.is() )
     {
-        awt::Size& rPageSize( pSlidePersistPtr->isNotesPage() ? maNotesSize : maSlideSize );
+        awt::Size& rPageSize( rSlidePersistPtr->isNotesPage() ? maNotesSize : maSlideSize );
         xPropertySet->setPropertyValue( "Width", Any( rPageSize.Width ) );
         xPropertySet->setPropertyValue( "Height", Any( rPageSize.Height ) );
 
-        oox::ppt::HeaderFooter aHeaderFooter( pSlidePersistPtr->getHeaderFooter() );
-        if ( !pSlidePersistPtr->isMasterPage() )
+        oox::ppt::HeaderFooter aHeaderFooter( rSlidePersistPtr->getHeaderFooter() );
+        if ( !rSlidePersistPtr->isMasterPage() )
             aHeaderFooter.mbSlideNumber = aHeaderFooter.mbHeader = aHeaderFooter.mbFooter = aHeaderFooter.mbDateTime = false;
         try
         {
-            if ( pSlidePersistPtr->isNotesPage() )
+            if ( rSlidePersistPtr->isNotesPage() )
                 xPropertySet->setPropertyValue( "IsHeaderVisible", Any( aHeaderFooter.mbHeader ) );
             xPropertySet->setPropertyValue( "IsFooterVisible", Any( aHeaderFooter.mbFooter ) );
             xPropertySet->setPropertyValue( "IsDateTimeVisible", Any( aHeaderFooter.mbDateTime ) );
@@ -510,7 +510,7 @@ bool PresentationFragmentHandler::importSlide( const FragmentHandlerRef& rxSlide
         {
         }
     }
-    pSlidePersistPtr->setPath( rxSlideFragmentHandler->getFragmentPath() );
+    rSlidePersistPtr->setPath( rxSlideFragmentHandler->getFragmentPath() );
     return getFilter().importFragment( rxSlideFragmentHandler );
 }
 
diff --git a/sd/source/filter/eppt/pptexanimations.cxx b/sd/source/filter/eppt/pptexanimations.cxx
index 405fb72..eeb4bc3 100644
--- a/sd/source/filter/eppt/pptexanimations.cxx
+++ b/sd/source/filter/eppt/pptexanimations.cxx
@@ -1767,14 +1767,14 @@ Reference< XShape > AnimationExporter::getTargetElementShape( const Any& rAny, s
     return xShape;
 }
 
-void AnimationExporter::exportAnimateTargetElement( SvStream& rStrm, const Any aAny, const bool bCreate2b01Atom )
+void AnimationExporter::exportAnimateTargetElement( SvStream& rStrm, const Any& rAny, const bool bCreate2b01Atom )
 {
     sal_uInt32 nRefMode = 0;    // nRefMode == 2 -> Paragraph
     sal_Int32 begin = -1;
     sal_Int32 end = -1;
     bool bParagraphTarget;
 
-    Reference< XShape > xShape = getTargetElementShape( aAny, begin, end, bParagraphTarget );
+    Reference< XShape > xShape = getTargetElementShape(rAny, begin, end, bParagraphTarget);
 
     if( bParagraphTarget )
         nRefMode = 2;
diff --git a/sd/source/filter/eppt/pptexanimations.hxx b/sd/source/filter/eppt/pptexanimations.hxx
index a73b730..6bb26b6 100644
--- a/sd/source/filter/eppt/pptexanimations.hxx
+++ b/sd/source/filter/eppt/pptexanimations.hxx
@@ -90,7 +90,7 @@ class AnimationExporter
                         const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >* xParent,
                             const sal_uInt16 nContainerRecType, const sal_uInt16 nInstance, const sal_Int32 nGroupLevel, const bool bTakeBackInteractiveSequenceTiming,
                                 const sal_Int16 nFillDefault );
-    void exportAnimateTargetElement( SvStream& rStrm, const ::com::sun::star::uno::Any aAny, const bool bCreate2b01Atom );
+    void exportAnimateTargetElement( SvStream& rStrm, const ::com::sun::star::uno::Any& rAny, const bool bCreate2b01Atom );
     void exportAnimateKeyPoints( SvStream& rStrm, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimate >& xAnimate );
     void exportAnimValue( SvStream& rStrm, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode, const bool bExportAlways );
     void exportTransitionFilter( SvStream& rStrm, const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xNode );
diff --git a/sdext/source/presenter/PresenterAccessibility.cxx b/sdext/source/presenter/PresenterAccessibility.cxx
index b89752f..a1ccb22 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 b6e440c..4b147a8 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 76d86e3..543d81d 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);
diff --git a/sfx2/source/sidebar/DeckLayouter.cxx b/sfx2/source/sidebar/DeckLayouter.cxx
index 7be5513..984b61b 100644
--- a/sfx2/source/sidebar/DeckLayouter.cxx
+++ b/sfx2/source/sidebar/DeckLayouter.cxx
@@ -55,7 +55,7 @@ namespace {
         {}
     };
     Rectangle LayoutPanels (
-        const Rectangle aContentArea,
+        const Rectangle& rContentArea,
         sal_Int32& rMinimalWidth,
         ::std::vector<LayoutItem>& rLayoutItems,
         vcl::Window& rScrollClipWindow,
@@ -101,7 +101,7 @@ namespace {
         ++iterator_name)
 
 void DeckLayouter::LayoutDeck (
-    const Rectangle aContentArea,
+    const Rectangle& rContentArea,
     sal_Int32& rMinimalWidth,
     SharedPanelContainer& rPanels,
     vcl::Window& rDeckTitleBar,
@@ -110,9 +110,9 @@ void DeckLayouter::LayoutDeck (
     vcl::Window& rFiller,
     ScrollBar& rVerticalScrollBar)
 {
-    if (aContentArea.GetWidth()<=0 || aContentArea.GetHeight()<=0)
+    if (rContentArea.GetWidth()<=0 || rContentArea.GetHeight()<=0)
         return;
-    Rectangle aBox (PlaceDeckTitle(rDeckTitleBar, aContentArea));
+    Rectangle aBox (PlaceDeckTitle(rDeckTitleBar, rContentArea));
 
     if ( ! rPanels.empty())
     {
@@ -139,7 +139,7 @@ void DeckLayouter::LayoutDeck (
 namespace {
 
 Rectangle LayoutPanels (
-    const Rectangle aContentArea,
+    const Rectangle& rContentArea,
     sal_Int32& rMinimalWidth,
     ::std::vector<LayoutItem>& rLayoutItems,
     vcl::Window& rScrollClipWindow,
@@ -147,7 +147,7 @@ Rectangle LayoutPanels (
     ScrollBar& rVerticalScrollBar,
     const bool bShowVerticalScrollBar)
 {
-    Rectangle aBox (PlaceVerticalScrollBar(rVerticalScrollBar, aContentArea, bShowVerticalScrollBar));
+    Rectangle aBox (PlaceVerticalScrollBar(rVerticalScrollBar, rContentArea, bShowVerticalScrollBar));
 
     const sal_Int32 nWidth (aBox.GetWidth());
 
@@ -176,7 +176,7 @@ Rectangle LayoutPanels (
         // minimum height.
         // Show a vertical scrollbar.
         return LayoutPanels(
-            aContentArea,
+            rContentArea,
             rMinimalWidth,
             rLayoutItems,
             rScrollClipWindow,
diff --git a/sfx2/source/sidebar/DeckLayouter.hxx b/sfx2/source/sidebar/DeckLayouter.hxx
index 7d57e8e..965fb56 100644
--- a/sfx2/source/sidebar/DeckLayouter.hxx
+++ b/sfx2/source/sidebar/DeckLayouter.hxx
@@ -40,7 +40,7 @@ class Panel;
 namespace DeckLayouter
 {
     void LayoutDeck (
-        const Rectangle aContentArea,
+        const Rectangle& rContentArea,
         sal_Int32& rMinimalWidth,
         SharedPanelContainer& rPanels,
         vcl::Window& pDeckTitleBar,
diff --git a/sfx2/source/sidebar/DrawHelper.cxx b/sfx2/source/sidebar/DrawHelper.cxx
index 3a29a55..903f638 100644
--- a/sfx2/source/sidebar/DrawHelper.cxx
+++ b/sfx2/source/sidebar/DrawHelper.cxx
@@ -26,8 +26,8 @@ namespace sfx2 { namespace sidebar {
 
 void DrawHelper::DrawBorder (
     OutputDevice& rDevice,
-    const Rectangle rBox,
-    const SvBorder aBorderSize,
+    const Rectangle& rBox,
+    const SvBorder& rBorderSize,
     const Paint& rHorizontalPaint,
     const Paint& rVerticalPaint)
 {
@@ -37,31 +37,31 @@ void DrawHelper::DrawBorder (
         rBox.Left(),
         rBox.Right(),
         rBox.Top(),
-        aBorderSize.Top(),
+        rBorderSize.Top(),
         rHorizontalPaint);
     // Draw bottom line.
     DrawHorizontalLine(
         rDevice,
-        rBox.Left()+aBorderSize.Left(),
+        rBox.Left()+rBorderSize.Left(),
         rBox.Right(),
-        rBox.Bottom()-aBorderSize.Bottom()+1,
-        aBorderSize.Bottom(),
+        rBox.Bottom()-rBorderSize.Bottom()+1,
+        rBorderSize.Bottom(),
         rHorizontalPaint);
     // Draw left line.
     DrawVerticalLine(
         rDevice,
-        rBox.Top()+aBorderSize.Top(),
+        rBox.Top()+rBorderSize.Top(),
         rBox.Bottom(),
         rBox.Left(),
-        aBorderSize.Left(),
+        rBorderSize.Left(),
         rVerticalPaint);
     // Draw right line.
     DrawVerticalLine(
         rDevice,
-        rBox.Top()+aBorderSize.Top(),
-        rBox.Bottom()-aBorderSize.Bottom(),
-        rBox.Right()-aBorderSize.Right()+1,
-        aBorderSize.Right(),
+        rBox.Top()+rBorderSize.Top(),
+        rBox.Bottom()-rBorderSize.Bottom(),
+        rBox.Right()-rBorderSize.Right()+1,
+        rBorderSize.Right(),
         rVerticalPaint);
 }
 
diff --git a/sfx2/source/sidebar/DrawHelper.hxx b/sfx2/source/sidebar/DrawHelper.hxx
index 28c7b1f..f93418f 100644
--- a/sfx2/source/sidebar/DrawHelper.hxx
+++ b/sfx2/source/sidebar/DrawHelper.hxx
@@ -36,8 +36,8 @@ class DrawHelper
 public:
     static void DrawBorder (
         OutputDevice& rDevice,
-        const Rectangle rBox,
-        const SvBorder aBorderSize,
+        const Rectangle& rBox,
+        const SvBorder& rBorderSize,
         const Paint& rHorizontalPaint,
         const Paint& rVerticalPaint);
     static void DrawHorizontalLine(
diff --git a/sfx2/source/sidebar/EnumContext.cxx b/sfx2/source/sidebar/EnumContext.cxx
index e27d78f..e89f562 100644
--- a/sfx2/source/sidebar/EnumContext.cxx
+++ b/sfx2/source/sidebar/EnumContext.cxx
@@ -89,16 +89,16 @@ EnumContext::Application EnumContext::GetApplication_DI (void) const
      }
 }
 
-bool EnumContext::operator== (const EnumContext aOther)
+bool EnumContext::operator== (const EnumContext& rOther)
 {
-    return meApplication==aOther.meApplication
-        && meContext==aOther.meContext;
+    return meApplication==rOther.meApplication
+        && meContext==rOther.meContext;
 }
 
-bool EnumContext::operator!= (const EnumContext aOther)
+bool EnumContext::operator!= (const EnumContext& rOther)
 {
-    return meApplication!=aOther.meApplication
-        || meContext!=aOther.meContext;
+    return meApplication!=rOther.meApplication
+        || meContext!=rOther.meContext;
 }
 
 void EnumContext::AddEntry (const ::rtl::OUString& rsName, const Application eApplication)
diff --git a/sfx2/source/sidebar/Tools.cxx b/sfx2/source/sidebar/Tools.cxx
index cb86ea7..fa9b256 100644
--- a/sfx2/source/sidebar/Tools.cxx
+++ b/sfx2/source/sidebar/Tools.cxx
@@ -91,35 +91,35 @@ Image Tools::GetImage (
     return Image();
 }
 
-css::awt::Gradient Tools::VclToAwtGradient (const Gradient aVclGradient)
+css::awt::Gradient Tools::VclToAwtGradient (const Gradient& rVclGradient)
 {
     css::awt::Gradient aAwtGradient (
-        awt::GradientStyle(aVclGradient.GetStyle()),
-        aVclGradient.GetStartColor().GetRGBColor(),
-        aVclGradient.GetEndColor().GetRGBColor(),
-        aVclGradient.GetAngle(),
-        aVclGradient.GetBorder(),
-        aVclGradient.GetOfsX(),
-        aVclGradient.GetOfsY(),
-        aVclGradient.GetStartIntensity(),
-        aVclGradient.GetEndIntensity(),
-        aVclGradient.GetSteps());
+        awt::GradientStyle(rVclGradient.GetStyle()),
+        rVclGradient.GetStartColor().GetRGBColor(),
+        rVclGradient.GetEndColor().GetRGBColor(),
+        rVclGradient.GetAngle(),
+        rVclGradient.GetBorder(),
+        rVclGradient.GetOfsX(),
+        rVclGradient.GetOfsY(),
+        rVclGradient.GetStartIntensity(),
+        rVclGradient.GetEndIntensity(),
+        rVclGradient.GetSteps());
     return aAwtGradient;
 }
 
-Gradient Tools::AwtToVclGradient (const css::awt::Gradient aAwtGradient)
+Gradient Tools::AwtToVclGradient (const css::awt::Gradient& rAwtGradient)
 {
     Gradient aVclGradient (
-        GradientStyle(aAwtGradient.Style),
-        aAwtGradient.StartColor,
-        aAwtGradient.EndColor);
-    aVclGradient.SetAngle(aAwtGradient.Angle);
-    aVclGradient.SetBorder(aAwtGradient.Border);
-    aVclGradient.SetOfsX(aAwtGradient.XOffset);
-    aVclGradient.SetOfsY(aAwtGradient.YOffset);
-    aVclGradient.SetStartIntensity(aAwtGradient.StartIntensity);
-    aVclGradient.SetEndIntensity(aAwtGradient.EndIntensity);
-    aVclGradient.SetSteps(aAwtGradient.StepCount);
+        GradientStyle(rAwtGradient.Style),
+        rAwtGradient.StartColor,
+        rAwtGradient.EndColor);
+    aVclGradient.SetAngle(rAwtGradient.Angle);
+    aVclGradient.SetBorder(rAwtGradient.Border);
+    aVclGradient.SetOfsX(rAwtGradient.XOffset);
+    aVclGradient.SetOfsY(rAwtGradient.YOffset);
+    aVclGradient.SetStartIntensity(rAwtGradient.StartIntensity);
+    aVclGradient.SetEndIntensity(rAwtGradient.EndIntensity);
+    aVclGradient.SetSteps(rAwtGradient.StepCount);
 
     return aVclGradient;
 }
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 5da4f6e..75ec603 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -739,11 +739,11 @@ sal_Int32 SvxShowCharSet::getMaxCharCount() const
 // TODO: should be moved into Font Attributes stuff
 // we let it mature here though because it is currently the only use
 
-SubsetMap::SubsetMap( const FontCharMapPtr pFontCharMap )
+SubsetMap::SubsetMap( const FontCharMapPtr& rFontCharMap )
 :   Resource( SVX_RES(RID_SUBSETMAP) )
 {
     InitList();
-    ApplyCharMap( pFontCharMap );
+    ApplyCharMap(rFontCharMap);
     FreeResource();
 }
 
@@ -1571,9 +1571,9 @@ void SubsetMap::InitList()
     maSubsets = aAllSubsets;
 }
 
-void SubsetMap::ApplyCharMap( const FontCharMapPtr pFontCharMap )
+void SubsetMap::ApplyCharMap( const FontCharMapPtr& rFontCharMap )
 {
-    if( !pFontCharMap )
+    if( !rFontCharMap )
         return;
 
     // remove subsets that are not matched in any range
@@ -1584,7 +1584,7 @@ void SubsetMap::ApplyCharMap( const FontCharMapPtr pFontCharMap )
         sal_uInt32 cMin = rSubset.GetRangeMin();
         sal_uInt32 cMax = rSubset.GetRangeMax();
 
-        int nCount =  pFontCharMap->CountCharsInRange( cMin, cMax );
+        int nCount =  rFontCharMap->CountCharsInRange( cMin, cMax );
         if( nCount <= 0 )
             it = maSubsets.erase(it);
         else
diff --git a/svx/source/dialog/framelink.cxx b/svx/source/dialog/framelink.cxx
index fec46f8..c74b2c2 100644
--- a/svx/source/dialog/framelink.cxx
+++ b/svx/source/dialog/framelink.cxx
@@ -1400,9 +1400,9 @@ double lcl_GetExtent( const Style& rBorder, const Style& rSide, const Style& rOp
     return nCut;
 }
 
-basegfx::B2DPoint lcl_PointToB2DPoint( const Point aPoint )
+basegfx::B2DPoint lcl_PointToB2DPoint( const Point& rPoint )
 {
-    return basegfx::B2DPoint( aPoint.getX(), aPoint.getY() );
+    return basegfx::B2DPoint(rPoint.getX(), rPoint.getY());
 }
 
 drawinglayer::primitive2d::Primitive2DSequence CreateClippedBorderPrimitives (
diff --git a/svx/source/engine3d/lathe3d.cxx b/svx/source/engine3d/lathe3d.cxx
index bb53605..7869e63 100644
--- a/svx/source/engine3d/lathe3d.cxx
+++ b/svx/source/engine3d/lathe3d.cxx
@@ -56,7 +56,7 @@ TYPEINIT1(E3dLatheObj, E3dCompoundObject);
 
 // Constructor from 3D polygon, scale is the conversion factor for the coordinates
 
-E3dLatheObj::E3dLatheObj(E3dDefaultAttributes& rDefault, const basegfx::B2DPolyPolygon rPoly2D)
+E3dLatheObj::E3dLatheObj(E3dDefaultAttributes& rDefault, const basegfx::B2DPolyPolygon& rPoly2D)
 :   E3dCompoundObject(rDefault),
     maPolyPoly2D(rPoly2D)
 {
diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx
index b080786..7d1366c 100644
--- a/svx/source/form/fmtextcontrolshell.cxx
+++ b/svx/source/form/fmtextcontrolshell.cxx
@@ -1260,8 +1260,8 @@ namespace svx
     }
 
 
-    void FmTextControlShell::fillFeatureDispatchers(  const Reference< XControl > _rxControl, SfxSlotId* _pZeroTerminatedSlots,
-            ControlFeatures& _rDispatchers )
+    void FmTextControlShell::fillFeatureDispatchers(const Reference< XControl >& _rxControl, SfxSlotId* _pZeroTerminatedSlots,
+            ControlFeatures& _rDispatchers)
     {
         Reference< XDispatchProvider > xProvider( _rxControl, UNO_QUERY );
         SfxApplication* pApplication = SfxGetpApp();
diff --git a/svx/source/inc/fmtextcontrolshell.hxx b/svx/source/inc/fmtextcontrolshell.hxx
index 3f2a9f8..241ecaf 100644
--- a/svx/source/inc/fmtextcontrolshell.hxx
+++ b/svx/source/inc/fmtextcontrolshell.hxx
@@ -165,7 +165,7 @@ namespace svx
 
         // fills the given structure with dispatchers for the given slots, for the given control
         void            fillFeatureDispatchers(
-                            const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl > _rxControl,
+                            const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& _rxControl,
                             SfxSlotId* _pZeroTerminatedSlots,
                             ControlFeatures& _rDispatchers
                         );
diff --git a/svx/source/inc/xmlxtexp.hxx b/svx/source/inc/xmlxtexp.hxx
index 82fdb20..bf21883 100644
--- a/svx/source/inc/xmlxtexp.hxx
+++ b/svx/source/inc/xmlxtexp.hxx
@@ -36,7 +36,7 @@ class SvxXMLXTableExportComponent : public SvXMLExport
 public:
     // #110680#
     SvxXMLXTableExportComponent(
-        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
         const OUString& rFileName,
         const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler > & xHandler,
         const com::sun::star::uno::Reference< com::sun::star::container::XNameContainer > & xTable,
diff --git a/svx/source/inc/xmlxtimp.hxx b/svx/source/inc/xmlxtimp.hxx
index e112205..f3a6f32 100644
--- a/svx/source/inc/xmlxtimp.hxx
+++ b/svx/source/inc/xmlxtimp.hxx
@@ -35,9 +35,9 @@ class SvxXMLXTableImport : public SvXMLImport
 public:
     // #110680#
     SvxXMLXTableImport(
-        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
         const ::com::sun::star::uno::Reference< ::com::sun::star::container::XNameContainer > & rTable,
-        com::sun::star::uno::Reference< com::sun::star::document::XGraphicObjectResolver >& xGrfResolver);
+        com::sun::star::uno::Reference< com::sun::star::document::XGraphicObjectResolver >& rGrfResolver);
 
     virtual ~SvxXMLXTableImport() throw ();
 
diff --git a/svx/source/smarttags/SmartTagMgr.cxx b/svx/source/smarttags/SmartTagMgr.cxx
index 2e02ca7..df96a6b 100644
--- a/svx/source/smarttags/SmartTagMgr.cxx
+++ b/svx/source/smarttags/SmartTagMgr.cxx
@@ -86,8 +86,8 @@ void SmartTagMgr::CreateBreakIterator() const
 /** Dispatches the recognize call to all installed smart tag recognizers
 */
 void SmartTagMgr::RecognizeString( const OUString& rText,
-                             const Reference< text::XTextMarkup > xMarkup,
-                             const Reference< frame::XController > xController,
+                             const Reference< text::XTextMarkup >& xMarkup,
+                             const Reference< frame::XController >& xController,
                              const lang::Locale& rLocale,
                              sal_uInt32 nStart, sal_uInt32 nLen ) const
 {
@@ -117,9 +117,9 @@ void SmartTagMgr::RecognizeString( const OUString& rText,
     }
 }
 
-void SmartTagMgr::RecognizeTextRange(const Reference< text::XTextRange> xRange,
-                             const Reference< text::XTextMarkup > xMarkup,
-                             const Reference< frame::XController > xController) const
+void SmartTagMgr::RecognizeTextRange(const Reference< text::XTextRange>& xRange,
+                             const Reference< text::XTextMarkup >& xMarkup,
+                             const Reference< frame::XController >& xController) const
 {
     for ( sal_uInt32 i = 0; i < maRecognizerList.size(); i++ )
     {
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index 8ae2768..5d6bf2d 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -2073,7 +2073,7 @@ void SdrObjCustomShape::DragResizeCustomShape( const Rectangle& rNewRect )
     }
 }
 
-void SdrObjCustomShape::DragMoveCustomShapeHdl( const Point aDestination,

... etc. - the rest is truncated


More information about the Libreoffice-commits mailing list