[Libreoffice-commits] core.git: reportdesign/inc reportdesign/source sc/source sd/source starmath/source

Caolán McNamara caolanm at redhat.com
Wed Mar 4 09:02:24 PST 2015


 reportdesign/inc/UndoActions.hxx                  |    2 +-
 reportdesign/source/core/api/ReportDefinition.cxx |    8 ++++----
 reportdesign/source/core/sdr/UndoActions.cxx      |    4 ++--
 sc/source/ui/vba/vbaassistant.cxx                 |    2 +-
 sc/source/ui/vba/vbaassistant.hxx                 |    2 +-
 sc/source/ui/vba/vbamenu.cxx                      |    2 +-
 sc/source/ui/vba/vbamenu.hxx                      |    2 +-
 sc/source/ui/vba/vbamenubar.cxx                   |    2 +-
 sc/source/ui/vba/vbamenubar.hxx                   |    2 +-
 sc/source/ui/vba/vbamenuitem.cxx                  |    2 +-
 sc/source/ui/vba/vbamenuitem.hxx                  |    2 +-
 sc/source/ui/vba/vbapane.cxx                      |    8 ++++----
 sc/source/ui/vba/vbapane.hxx                      |    8 ++++----
 sc/source/ui/vba/vbarange.cxx                     |   10 +++++-----
 sd/source/ui/dlg/RemoteDialogClientBox.cxx        |   22 +++++++++++-----------
 sd/source/ui/dlg/RemoteDialogClientBox.hxx        |    2 +-
 starmath/source/mathmlexport.cxx                  |   10 +++++-----
 starmath/source/mathmlexport.hxx                  |    2 +-
 starmath/source/mathmlimport.cxx                  |    4 ++--
 starmath/source/mathmlimport.hxx                  |    2 +-
 20 files changed, 49 insertions(+), 49 deletions(-)

New commits:
commit 429ff8877a0a8c864b6b1fc227f6efccb61b5be6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Mar 4 16:29:43 2015 +0000

    V813: Decreased performance
    
    Change-Id: Ib40140b97b53ed7affaf3a209a0a12a60ee7434c

diff --git a/reportdesign/inc/UndoActions.hxx b/reportdesign/inc/UndoActions.hxx
index 14d33bd..72dd619 100644
--- a/reportdesign/inc/UndoActions.hxx
+++ b/reportdesign/inc/UndoActions.hxx
@@ -187,7 +187,7 @@ namespace rptui
     public:
         OUndoContainerAction(SdrModel& rMod
                             ,Action _eAction
-                            ,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer > _xContainer
+                            ,const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexContainer >& rContainer
                             ,const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& xElem
                             ,sal_uInt16 _nCommentId);
         virtual ~OUndoContainerAction();
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index 2261a82..7671008 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -2298,7 +2298,7 @@ class OStylesHelper:
 protected:
     virtual ~OStylesHelper(){}
 public:
-    OStylesHelper(const uno::Type _aType = cppu::UnoType<container::XElementAccess>::get());
+    OStylesHelper(const uno::Type& rType = cppu::UnoType<container::XElementAccess>::get());
 
     // XNameContainer
     virtual void SAL_CALL insertByName( const OUString& aName, const uno::Any& aElement ) throw(lang::IllegalArgumentException, container::ElementExistException,lang::WrappedTargetException, uno::RuntimeException, std::exception) SAL_OVERRIDE;
@@ -2320,9 +2320,9 @@ public:
     virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw(uno::RuntimeException, std::exception) SAL_OVERRIDE;
 };
 
-OStylesHelper::OStylesHelper(const uno::Type _aType)
-: cppu::BaseMutex()
-,m_aType(_aType)
+OStylesHelper::OStylesHelper(const uno::Type& rType)
+    : cppu::BaseMutex()
+    , m_aType(rType)
 {
 }
 ;
diff --git a/reportdesign/source/core/sdr/UndoActions.cxx b/reportdesign/source/core/sdr/UndoActions.cxx
index 7331e88..a676dbc 100644
--- a/reportdesign/source/core/sdr/UndoActions.cxx
+++ b/reportdesign/source/core/sdr/UndoActions.cxx
@@ -105,12 +105,12 @@ void OCommentUndoAction::Redo()
 
 OUndoContainerAction::OUndoContainerAction(SdrModel& _rMod
                                              ,Action _eAction
-                                             ,const uno::Reference< container::XIndexContainer > _xContainer
+                                             ,const uno::Reference< container::XIndexContainer >& rContainer
                                              ,const Reference< XInterface > & xElem
                                              ,sal_uInt16 _nCommentId)
                       :OCommentUndoAction(_rMod,_nCommentId)
                       ,m_xElement(xElem)
-                      ,m_xContainer(_xContainer)
+                      ,m_xContainer(rContainer)
                          ,m_eAction( _eAction )
 {
     // normalize
diff --git a/sc/source/ui/vba/vbaassistant.cxx b/sc/source/ui/vba/vbaassistant.cxx
index efd90a3..28a114e 100644
--- a/sc/source/ui/vba/vbaassistant.cxx
+++ b/sc/source/ui/vba/vbaassistant.cxx
@@ -28,7 +28,7 @@ using namespace ooo::vba;
 
 using namespace ooo::vba::office::MsoAnimationType;
 
-ScVbaAssistant::ScVbaAssistant( const uno::Reference< XHelperInterface > xParent, const uno::Reference< uno::XComponentContext > xContext ): ScVbaAssistantImpl_BASE( xParent, xContext ),
+ScVbaAssistant::ScVbaAssistant( const uno::Reference< XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext ): ScVbaAssistantImpl_BASE(rParent, rContext),
 m_sName( "Clippit" )
 {
     m_bIsVisible = false;
diff --git a/sc/source/ui/vba/vbaassistant.hxx b/sc/source/ui/vba/vbaassistant.hxx
index e10ab6a..3ccbc2d 100644
--- a/sc/source/ui/vba/vbaassistant.hxx
+++ b/sc/source/ui/vba/vbaassistant.hxx
@@ -39,7 +39,7 @@ private:
     OUString        m_sName;
     sal_Int32       m_nAnimation;
 public:
-    ScVbaAssistant( const css::uno::Reference< ov::XHelperInterface > xParent, const css::uno::Reference< css::uno::XComponentContext > xContext );
+    ScVbaAssistant( const css::uno::Reference< ov::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext );
     virtual ~ScVbaAssistant();
     // XAssistant
     virtual sal_Bool SAL_CALL getOn() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/sc/source/ui/vba/vbamenu.cxx b/sc/source/ui/vba/vbamenu.cxx
index 328d43e..f0088b8 100644
--- a/sc/source/ui/vba/vbamenu.cxx
+++ b/sc/source/ui/vba/vbamenu.cxx
@@ -13,7 +13,7 @@
 using namespace com::sun::star;
 using namespace ooo::vba;
 
-ScVbaMenu::ScVbaMenu( const uno::Reference< ov::XHelperInterface > xParent, const uno::Reference< uno::XComponentContext > xContext, const uno::Reference< XCommandBarControl >& xCommandBarControl ) throw( uno::RuntimeException ) : Menu_BASE( xParent, xContext ), m_xCommandBarControl( xCommandBarControl )
+ScVbaMenu::ScVbaMenu( const uno::Reference< ov::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< XCommandBarControl >& rCommandBarControl ) throw( uno::RuntimeException ) : Menu_BASE( rParent, rContext ), m_xCommandBarControl( rCommandBarControl )
 {
 }
 
diff --git a/sc/source/ui/vba/vbamenu.hxx b/sc/source/ui/vba/vbamenu.hxx
index 9357364..bbc557b 100644
--- a/sc/source/ui/vba/vbamenu.hxx
+++ b/sc/source/ui/vba/vbamenu.hxx
@@ -21,7 +21,7 @@ private:
     css::uno::Reference< ov::XCommandBarControl > m_xCommandBarControl;
 
 public:
-    ScVbaMenu( const css::uno::Reference< ov::XHelperInterface > xParent, const css::uno::Reference< css::uno::XComponentContext > xContext, const css::uno::Reference< ov::XCommandBarControl >& xCommandBarControl ) throw( css::uno::RuntimeException );
+    ScVbaMenu( const css::uno::Reference< ov::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< ov::XCommandBarControl >& rCommandBarControl ) throw( css::uno::RuntimeException );
 
     virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/sc/source/ui/vba/vbamenubar.cxx b/sc/source/ui/vba/vbamenubar.cxx
index 682fd11..e400ab3 100644
--- a/sc/source/ui/vba/vbamenubar.cxx
+++ b/sc/source/ui/vba/vbamenubar.cxx
@@ -13,7 +13,7 @@
 using namespace com::sun::star;
 using namespace ooo::vba;
 
-ScVbaMenuBar::ScVbaMenuBar( const uno::Reference< ov::XHelperInterface > xParent, const uno::Reference< uno::XComponentContext > xContext, const uno::Reference< XCommandBar >& xCommandBar ) throw( uno::RuntimeException ) : MenuBar_BASE( xParent, xContext ), m_xCommandBar( xCommandBar )
+ScVbaMenuBar::ScVbaMenuBar( const uno::Reference< ov::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< XCommandBar >& rCommandBar ) throw( uno::RuntimeException ) : MenuBar_BASE(rParent, rContext), m_xCommandBar(rCommandBar)
 {
 }
 
diff --git a/sc/source/ui/vba/vbamenubar.hxx b/sc/source/ui/vba/vbamenubar.hxx
index d7dd5a2..919da5f 100644
--- a/sc/source/ui/vba/vbamenubar.hxx
+++ b/sc/source/ui/vba/vbamenubar.hxx
@@ -21,7 +21,7 @@ private:
     css::uno::Reference< ov::XCommandBar > m_xCommandBar;
 
 public:
-    ScVbaMenuBar( const css::uno::Reference< ov::XHelperInterface > xParent, const css::uno::Reference< css::uno::XComponentContext > xContext, const css::uno::Reference< ov::XCommandBar >& xCommandBar ) throw( css::uno::RuntimeException );
+    ScVbaMenuBar( const css::uno::Reference< ov::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< ov::XCommandBar >& rCommandBar ) throw( css::uno::RuntimeException );
 
     virtual css::uno::Any SAL_CALL Menus( const css::uno::Any& aIndex ) throw (css::script::BasicErrorException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
 
diff --git a/sc/source/ui/vba/vbamenuitem.cxx b/sc/source/ui/vba/vbamenuitem.cxx
index b05e898..4832165 100644
--- a/sc/source/ui/vba/vbamenuitem.cxx
+++ b/sc/source/ui/vba/vbamenuitem.cxx
@@ -11,7 +11,7 @@
 using namespace com::sun::star;
 using namespace ooo::vba;
 
-ScVbaMenuItem::ScVbaMenuItem( const uno::Reference< ov::XHelperInterface > xParent, const uno::Reference< uno::XComponentContext > xContext, const uno::Reference< XCommandBarControl >& xCommandBarControl ) throw( uno::RuntimeException ) : MenuItem_BASE( xParent, xContext ), m_xCommandBarControl( xCommandBarControl )
+ScVbaMenuItem::ScVbaMenuItem( const uno::Reference< ov::XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Reference< XCommandBarControl >& rCommandBarControl ) throw( uno::RuntimeException ) : MenuItem_BASE( rParent, rContext ), m_xCommandBarControl( rCommandBarControl )
 {
 }
 
diff --git a/sc/source/ui/vba/vbamenuitem.hxx b/sc/source/ui/vba/vbamenuitem.hxx
index 1561ce0..3bb9a1d 100644
--- a/sc/source/ui/vba/vbamenuitem.hxx
+++ b/sc/source/ui/vba/vbamenuitem.hxx
@@ -21,7 +21,7 @@ private:
     css::uno::Reference< ov::XCommandBarControl > m_xCommandBarControl;
 
 public:
-    ScVbaMenuItem( const css::uno::Reference< ov::XHelperInterface > xParent, const css::uno::Reference< css::uno::XComponentContext > xContext, const css::uno::Reference< ov::XCommandBarControl >& xCommandBarControl ) throw( css::uno::RuntimeException );
+    ScVbaMenuItem( const css::uno::Reference< ov::XHelperInterface >& rParent, const css::uno::Reference< css::uno::XComponentContext >& rContext, const css::uno::Reference< ov::XCommandBarControl >& rCommandBarControl ) throw( css::uno::RuntimeException );
 
     virtual OUString SAL_CALL getCaption() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     virtual void SAL_CALL setCaption( const OUString& _caption ) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
diff --git a/sc/source/ui/vba/vbapane.cxx b/sc/source/ui/vba/vbapane.cxx
index bd02fcb..db9c0e9 100644
--- a/sc/source/ui/vba/vbapane.cxx
+++ b/sc/source/ui/vba/vbapane.cxx
@@ -29,10 +29,10 @@ using namespace ooo::vba;
 ScVbaPane::ScVbaPane(
         const css::uno::Reference< ov::XHelperInterface >& xParent,
         const uno::Reference< uno::XComponentContext >& xContext,
-        const uno::Reference< frame::XModel >& xModel,
-        const uno::Reference< sheet::XViewPane > xViewPane ) throw (uno::RuntimeException) :
-    m_xModel( xModel, uno::UNO_SET_THROW ),
-    m_xViewPane( xViewPane, uno::UNO_SET_THROW ),
+        const uno::Reference< frame::XModel >& rModel,
+        const uno::Reference< sheet::XViewPane >& rViewPane ) throw (uno::RuntimeException) :
+    m_xModel(rModel, uno::UNO_SET_THROW),
+    m_xViewPane(rViewPane, uno::UNO_SET_THROW),
     m_xParent(xParent),
     m_xContext(xContext)
 {
diff --git a/sc/source/ui/vba/vbapane.hxx b/sc/source/ui/vba/vbapane.hxx
index 6455199..104e74a 100644
--- a/sc/source/ui/vba/vbapane.hxx
+++ b/sc/source/ui/vba/vbapane.hxx
@@ -30,10 +30,10 @@ class ScVbaPane : public ScVbaPane_BASE
 {
 public:
     ScVbaPane(
-        const css::uno::Reference< ov::XHelperInterface >& xParent,
-        const css::uno::Reference< css::uno::XComponentContext >& xContext,
-        const css::uno::Reference< css::frame::XModel >& xModel,
-        const css::uno::Reference< css::sheet::XViewPane > xViewPane ) throw (css::uno::RuntimeException);
+        const css::uno::Reference< ov::XHelperInterface >& rParent,
+        const css::uno::Reference< css::uno::XComponentContext >& rContext,
+        const css::uno::Reference< css::frame::XModel >& rModel,
+        const css::uno::Reference< css::sheet::XViewPane >& rViewPane ) throw (css::uno::RuntimeException);
 
     css::uno::Reference< css::sheet::XViewPane > getViewPane() const { return m_xViewPane; }
 
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 6489758..992dce4 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -213,10 +213,10 @@ static double lcl_Round2DecPlaces( double nVal )
     return nVal;
 }
 
-static uno::Any lcl_makeRange( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Any aAny, bool bIsRows, bool bIsColumns )
+static uno::Any lcl_makeRange( const uno::Reference< XHelperInterface >& rParent, const uno::Reference< uno::XComponentContext >& rContext, const uno::Any& rAny, bool bIsRows, bool bIsColumns )
 {
-    uno::Reference< table::XCellRange > xCellRange( aAny, uno::UNO_QUERY_THROW );
-    return uno::makeAny( uno::Reference< excel::XRange >( new ScVbaRange( xParent, xContext, xCellRange, bIsRows, bIsColumns ) ) );
+    uno::Reference< table::XCellRange > xCellRange(rAny, uno::UNO_QUERY_THROW);
+    return uno::makeAny( uno::Reference< excel::XRange >( new ScVbaRange( rParent, rContext, xCellRange, bIsRows, bIsColumns ) ) );
 }
 
 static uno::Reference< excel::XRange > lcl_makeXRangeFromSheetCellRanges( const uno::Reference< XHelperInterface >& xParent, const uno::Reference< uno::XComponentContext >& xContext, const uno::Reference< sheet::XSheetCellRanges >& xLocSheetCellRanges, ScDocShell* pDoc )
@@ -1102,9 +1102,9 @@ public:
         if ( !m_xCellRange.is() )
             throw uno::RuntimeException();
     }
-    RangeHelper( const uno::Any aCellRange ) throw (uno::RuntimeException)
+    RangeHelper( const uno::Any& rCellRange ) throw (uno::RuntimeException)
     {
-        m_xCellRange.set( aCellRange, uno::UNO_QUERY_THROW );
+        m_xCellRange.set(rCellRange, uno::UNO_QUERY_THROW);
     }
     uno::Reference< sheet::XSheetCellRange > getSheetCellRange() throw (uno::RuntimeException)
     {
diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx
index ac27e77..614a2b1 100644
--- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx
+++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx
@@ -271,16 +271,16 @@ void ClientBox::selectEntry( const long nPos )
     guard.clear();
 }
 
-void ClientBox::DrawRow( const Rectangle& rRect, const TClientBoxEntry pEntry )
+void ClientBox::DrawRow( const Rectangle& rRect, const TClientBoxEntry& rEntry )
 {
     const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
 
-    if ( pEntry->m_bActive )
+    if ( rEntry->m_bActive )
         SetTextColor( rStyleSettings.GetHighlightTextColor() );
     else
         SetTextColor( rStyleSettings.GetFieldTextColor() );
 
-    if ( pEntry->m_bActive )
+    if ( rEntry->m_bActive )
     {
         SetLineColor();
         SetFillColor( rStyleSettings.GetHighlightColor() );
@@ -311,25 +311,25 @@ void ClientBox::DrawRow( const Rectangle& rRect, const TClientBoxEntry pEntry )
     long nMaxTitleWidth = rRect.GetWidth() - ICON_OFFSET;
     nMaxTitleWidth -= ( 2 * SMALL_ICON_SIZE ) + ( 4 * SPACE_BETWEEN );
 
-    long aTitleWidth = GetTextWidth( pEntry->m_pClientInfo->mName ) + (aTextHeight / 3);
+    long aTitleWidth = GetTextWidth( rEntry->m_pClientInfo->mName ) + (aTextHeight / 3);
 
     aPos = rRect.TopLeft() + Point( ICON_OFFSET, TOP_OFFSET );
 
     if ( aTitleWidth > nMaxTitleWidth )
     {
         aTitleWidth = nMaxTitleWidth - (aTextHeight / 3);
-        OUString aShortTitle = GetEllipsisString( pEntry->m_pClientInfo->mName,
+        OUString aShortTitle = GetEllipsisString( rEntry->m_pClientInfo->mName,
                                                   aTitleWidth );
         DrawText( aPos, aShortTitle );
         aTitleWidth += (aTextHeight / 3);
     }
     else
-        DrawText( aPos, pEntry->m_pClientInfo->mName );
+        DrawText( aPos, rEntry->m_pClientInfo->mName );
 
     SetFont( aStdFont );
 
     aPos.Y() += aTextHeight;
-    if ( pEntry->m_bActive )
+    if ( rEntry->m_bActive )
     {
       OUString sPinText(SD_RESSTR(STR_ENTER_PIN));
       DrawText( m_sPinTextRect,
@@ -635,18 +635,18 @@ long ClientBox::addEntry( ::boost::shared_ptr<ClientInfo> pClientInfo )
 {
     long         nPos = 0;
 
-    TClientBoxEntry pEntry( new ClientBoxEntry( pClientInfo ) );
+    TClientBoxEntry xEntry( new ClientBoxEntry( pClientInfo ) );
 
     ::osl::ClearableMutexGuard guard(m_entriesMutex);
     if ( m_vEntries.empty() )
     {
-        m_vEntries.push_back( pEntry );
+        m_vEntries.push_back( xEntry );
     }
     else
     {
-//         if ( !FindEntryPos( pEntry, 0, m_vEntries.size()-1, nPos ) )
+//         if ( !FindEntryPos( xEntry, 0, m_vEntries.size()-1, nPos ) )
 //         {
-            m_vEntries.insert( m_vEntries.begin()+nPos, pEntry );
+            m_vEntries.insert( m_vEntries.begin()+nPos, xEntry );
 //         }
 //         else if ( !m_bInCheckMode )
 //         {
diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.hxx b/sd/source/ui/dlg/RemoteDialogClientBox.hxx
index c11a15b..1dc481e 100644
--- a/sd/source/ui/dlg/RemoteDialogClientBox.hxx
+++ b/sd/source/ui/dlg/RemoteDialogClientBox.hxx
@@ -123,7 +123,7 @@ class ClientBox:
     void            CalcActiveHeight( const long nPos );
     long            GetTotalHeight() const;
     void            SetupScrollBar();
-    void            DrawRow( const Rectangle& rRect, const TClientBoxEntry pEntry );
+    void            DrawRow(const Rectangle& rRect, const TClientBoxEntry& rEntry);
     bool            HandleTabKey( bool bReverse );
     bool            HandleCursorKey( sal_uInt16 nKeyCode );
     void            DeleteRemoved();
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 45bdcfc..39614c2 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -362,12 +362,12 @@ bool SmXMLExportWrapper::WriteThroughComponent(
 }
 
 SmXMLExport::SmXMLExport(
-    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
     OUString const & implementationName, SvXMLExportFlags nExportFlags)
-:   SvXMLExport(util::MeasureUnit::INCH, xContext, implementationName, XML_MATH,
-                nExportFlags)
-,   pTree(0) ,
-    bSuccess(false)
+    : SvXMLExport(util::MeasureUnit::INCH, rContext, implementationName, XML_MATH,
+                  nExportFlags)
+    , pTree(0)
+    , bSuccess(false)
 {
 }
 
diff --git a/starmath/source/mathmlexport.hxx b/starmath/source/mathmlexport.hxx
index a5e0360..d453640 100644
--- a/starmath/source/mathmlexport.hxx
+++ b/starmath/source/mathmlexport.hxx
@@ -105,7 +105,7 @@ protected:
 
 public:
     SmXMLExport(
-        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
         OUString const & implementationName, SvXMLExportFlags nExportFlags);
     virtual ~SmXMLExport() {};
 
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index 5713d1c..f2bd15d 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -396,9 +396,9 @@ sal_uLong SmXMLImportWrapper::ReadThroughComponent(
 
 
 SmXMLImport::SmXMLImport(
-    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+    const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
     OUString const & implementationName, SvXMLImportFlags nImportFlags)
-:   SvXMLImport( xContext, implementationName, nImportFlags ),
+:   SvXMLImport(rContext, implementationName, nImportFlags),
     pPresLayoutElemTokenMap(0),
     pPresLayoutAttrTokenMap(0),
     pFencedAttrTokenMap(0),
diff --git a/starmath/source/mathmlimport.hxx b/starmath/source/mathmlimport.hxx
index c46742b..f8d7f0a 100644
--- a/starmath/source/mathmlimport.hxx
+++ b/starmath/source/mathmlimport.hxx
@@ -88,7 +88,7 @@ class SmXMLImport : public SvXMLImport
 
 public:
     SmXMLImport(
-        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > xContext,
+        const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& rContext,
         OUString const & implementationName, SvXMLImportFlags nImportFlags);
     virtual ~SmXMLImport() throw ();
 


More information about the Libreoffice-commits mailing list