summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/docuno.hxx2
-rw-r--r--sc/inc/dpobject.hxx2
-rw-r--r--sc/inc/pivot.hxx4
-rw-r--r--sc/inc/viewopti.hxx2
-rw-r--r--sc/source/core/data/dpobject.cxx2
-rw-r--r--sc/source/core/data/pivot2.cxx4
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx4
-rw-r--r--sc/source/core/tool/calcconfig.cxx2
-rw-r--r--sc/source/core/tool/viewopti.cxx2
-rw-r--r--sc/source/filter/excel/xechart.cxx2
-rw-r--r--sc/source/filter/excel/xeroot.cxx2
-rw-r--r--sc/source/filter/inc/commentsbuffer.hxx2
-rw-r--r--sc/source/filter/inc/richstring.hxx2
-rw-r--r--sc/source/filter/inc/stylesbuffer.hxx6
-rw-r--r--sc/source/filter/inc/workbooksettings.hxx2
-rw-r--r--sc/source/filter/inc/xechart.hxx2
-rw-r--r--sc/source/filter/inc/xeroot.hxx2
-rw-r--r--sc/source/filter/oox/commentsbuffer.cxx2
-rw-r--r--sc/source/filter/oox/richstring.cxx2
-rw-r--r--sc/source/filter/oox/stylesbuffer.cxx6
-rw-r--r--sc/source/filter/oox/workbooksettings.cxx2
-rw-r--r--sc/source/filter/xml/xmlsubti.cxx8
-rw-r--r--sc/source/filter/xml/xmlsubti.hxx4
-rw-r--r--sc/source/ui/unoobj/docuno.cxx2
-rw-r--r--sc/source/ui/vba/excelvbahelper.cxx2
-rw-r--r--sc/source/ui/vba/vbaapplication.cxx2
-rw-r--r--sc/source/ui/vba/vbachartobject.cxx2
-rw-r--r--sc/source/ui/vba/vbachartobject.hxx2
-rw-r--r--sc/source/ui/vba/vbaformat.cxx2
-rw-r--r--sc/source/ui/vba/vbaformat.hxx2
-rw-r--r--sc/source/ui/vba/vbaglobals.cxx6
-rw-r--r--sc/source/ui/vba/vbaglobals.hxx2
-rw-r--r--sc/source/ui/vba/vbasheetobjects.cxx4
33 files changed, 46 insertions, 48 deletions
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index 47d7997caef3..43b5de9a01a6 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -106,7 +106,7 @@ private:
bool FillRenderMarkData( const css::uno::Any& aSelection,
const css::uno::Sequence< css::beans::PropertyValue >& rOptions,
ScMarkData& rMark, ScPrintSelectionStatus& rStatus, OUString& rPagesStr ) const;
- css::uno::Reference<css::uno::XAggregation> GetFormatter();
+ css::uno::Reference<css::uno::XAggregation> const & GetFormatter();
void HandleCalculateEvents();
css::uno::Reference<css::uno::XInterface> create(
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index ad56ed2c7291..92ceff14fa0a 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -151,7 +151,7 @@ public:
const ScImportSourceDesc* GetImportSourceDesc() const { return pImpDesc; }
const ScDPServiceDesc* GetDPServiceDesc() const { return pServDesc; }
- css::uno::Reference<css::sheet::XDimensionsSupplier> GetSource();
+ css::uno::Reference<css::sheet::XDimensionsSupplier> const & GetSource();
bool IsSheetData() const;
bool IsImportData() const { return(pImpDesc != nullptr); }
diff --git a/sc/inc/pivot.hxx b/sc/inc/pivot.hxx
index ae3fdd5a9167..a2fa951e0703 100644
--- a/sc/inc/pivot.hxx
+++ b/sc/inc/pivot.hxx
@@ -92,7 +92,7 @@ struct ScDPLabelData
* when the layout name is present, use it, or else use the original
* name.
*/
- OUString SC_DLLPUBLIC getDisplayName() const;
+ SC_DLLPUBLIC OUString const & getDisplayName() const;
};
std::vector<Member> maMembers;
css::uno::Sequence<OUString> maHiers; ///< Hierarchies.
@@ -106,7 +106,7 @@ struct ScDPLabelData
* @return the name that should be displayed in the dp dialogs i.e. when
* the layout name is present, use it, or else use the original name.
*/
- OUString SC_DLLPUBLIC getDisplayName() const;
+ SC_DLLPUBLIC OUString const & getDisplayName() const;
};
typedef std::vector< std::unique_ptr<ScDPLabelData> > ScDPLabelDataVector;
diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx
index 259653d1dc77..580a2b38bdea 100644
--- a/sc/inc/viewopti.hxx
+++ b/sc/inc/viewopti.hxx
@@ -92,7 +92,7 @@ public:
ScVObjMode GetObjMode( ScVObjType eObj ) const { return aModeArr[eObj]; }
void SetGridColor( const Color& rCol, const OUString& rName ) { aGridCol = rCol; aGridColName = rName;}
- Color GetGridColor( OUString* pStrName = nullptr ) const;
+ Color const & GetGridColor( OUString* pStrName = nullptr ) const;
const ScGridOptions& GetGridOptions() const { return aGridOpt; }
void SetGridOptions( const ScGridOptions& rNew ) { aGridOpt = rNew; }
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 987572bf1460..733ff90a535b 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -525,7 +525,7 @@ bool ScDPObject::IsDataDescriptionCell(const ScAddress& rPos)
return (rPos == aTabRange.aStart);
}
-uno::Reference<sheet::XDimensionsSupplier> ScDPObject::GetSource()
+uno::Reference<sheet::XDimensionsSupplier> const & ScDPObject::GetSource()
{
CreateObjects();
return xSource;
diff --git a/sc/source/core/data/pivot2.cxx b/sc/source/core/data/pivot2.cxx
index 62a2f3b508f0..cbb6f838b1ec 100644
--- a/sc/source/core/data/pivot2.cxx
+++ b/sc/source/core/data/pivot2.cxx
@@ -62,7 +62,7 @@ ScDPLabelData::Member::Member() :
mbShowDetails(true)
{}
-OUString ScDPLabelData::Member::getDisplayName() const
+OUString const & ScDPLabelData::Member::getDisplayName() const
{
if (!maLayoutName.isEmpty())
return maLayoutName;
@@ -83,7 +83,7 @@ ScDPLabelData::ScDPLabelData() :
mbRepeatItemLabels(false)
{}
-OUString ScDPLabelData::getDisplayName() const
+OUString const & ScDPLabelData::getDisplayName() const
{
if (!maLayoutName.isEmpty())
return maLayoutName;
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index aa110460f97a..55fd807de498 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -3694,7 +3694,7 @@ public:
void CodeGen();
/// Produce kernel hash
- std::string GetMD5();
+ std::string const & GetMD5();
/// Create program, build, and create kernel
/// TODO cache results based on kernel body hash
@@ -3792,7 +3792,7 @@ void DynamicKernel::CodeGen()
<< " program to be compiled:\n" << linenumberify(mFullProgramSrc));
}
-std::string DynamicKernel::GetMD5()
+std::string const & DynamicKernel::GetMD5()
{
if (mKernelHash.empty())
{
diff --git a/sc/source/core/tool/calcconfig.cxx b/sc/source/core/tool/calcconfig.cxx
index 96277ce01194..6f287307a912 100644
--- a/sc/source/core/tool/calcconfig.cxx
+++ b/sc/source/core/tool/calcconfig.cxx
@@ -24,7 +24,7 @@
using comphelper::ConfigurationListener;
-static rtl::Reference<ConfigurationListener> getMiscListener()
+static rtl::Reference<ConfigurationListener> const & getMiscListener()
{
static rtl::Reference<ConfigurationListener> xListener;
if (!xListener.is())
diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx
index e7f49ba79ac8..863fbe0dfc25 100644
--- a/sc/source/core/tool/viewopti.cxx
+++ b/sc/source/core/tool/viewopti.cxx
@@ -136,7 +136,7 @@ void ScViewOptions::SetDefaults()
aGridOpt.SetDefaults();
}
-Color ScViewOptions::GetGridColor( OUString* pStrName ) const
+Color const & ScViewOptions::GetGridColor( OUString* pStrName ) const
{
if ( pStrName )
*pStrName = aGridColName;
diff --git a/sc/source/filter/excel/xechart.cxx b/sc/source/filter/excel/xechart.cxx
index c2860104703b..5c24f293110b 100644
--- a/sc/source/filter/excel/xechart.cxx
+++ b/sc/source/filter/excel/xechart.cxx
@@ -304,7 +304,7 @@ XclExpChRoot::~XclExpChRoot()
{
}
-Reference< XChartDocument > XclExpChRoot::GetChartDocument() const
+Reference< XChartDocument > const & XclExpChRoot::GetChartDocument() const
{
return mxChData->mxChartDoc;
}
diff --git a/sc/source/filter/excel/xeroot.cxx b/sc/source/filter/excel/xeroot.cxx
index e51fa8a6f1a8..dd548a959d64 100644
--- a/sc/source/filter/excel/xeroot.cxx
+++ b/sc/source/filter/excel/xeroot.cxx
@@ -364,7 +364,7 @@ uno::Sequence< beans::NamedValue > XclExpRoot::GenerateDefaultEncryptionData() c
return aEncryptionData;
}
-XclExpRootData::XclExpLinkMgrRef XclExpRoot::GetLocalLinkMgrRef() const
+XclExpRootData::XclExpLinkMgrRef const & XclExpRoot::GetLocalLinkMgrRef() const
{
return IsInGlobals() ? mrExpData.mxGlobLinkMgr : mrExpData.mxLocLinkMgr;
}
diff --git a/sc/source/filter/inc/commentsbuffer.hxx b/sc/source/filter/inc/commentsbuffer.hxx
index a4d19a8617f6..255c5a98100a 100644
--- a/sc/source/filter/inc/commentsbuffer.hxx
+++ b/sc/source/filter/inc/commentsbuffer.hxx
@@ -58,7 +58,7 @@ public:
void importComment( SequenceInputStream& rStrm );
/** Creates and returns a new rich-string object for the comment text. */
- RichStringRef createText();
+ RichStringRef const & createText();
/** Finalizes the formatted string of the comment. */
void finalizeImport();
diff --git a/sc/source/filter/inc/richstring.hxx b/sc/source/filter/inc/richstring.hxx
index bfd48f107f4c..e00aad4d4c4e 100644
--- a/sc/source/filter/inc/richstring.hxx
+++ b/sc/source/filter/inc/richstring.hxx
@@ -43,7 +43,7 @@ public:
/** Sets text data for this portion. */
void setText( const OUString& rText );
/** Creates and returns a new font formatting object. */
- FontRef createFont();
+ FontRef const & createFont();
/** Links this portion to a font object from the global font list. */
void setFontId( sal_Int32 nFontId );
diff --git a/sc/source/filter/inc/stylesbuffer.hxx b/sc/source/filter/inc/stylesbuffer.hxx
index 020ddd9d0b07..ead10940eb45 100644
--- a/sc/source/filter/inc/stylesbuffer.hxx
+++ b/sc/source/filter/inc/stylesbuffer.hxx
@@ -676,11 +676,11 @@ public:
explicit Dxf( const WorkbookHelper& rHelper );
/** Creates a new empty font object. */
- FontRef createFont( bool bAlwaysNew = true );
+ FontRef const & createFont( bool bAlwaysNew = true );
/** Creates a new empty border object. */
- BorderRef createBorder( bool bAlwaysNew = true );
+ BorderRef const & createBorder( bool bAlwaysNew = true );
/** Creates a new empty fill object. */
- FillRef createFill( bool bAlwaysNew = true );
+ FillRef const & createFill( bool bAlwaysNew = true );
/** Inserts a new number format code. */
void importNumFmt( const AttributeList& rAttribs );
diff --git a/sc/source/filter/inc/workbooksettings.hxx b/sc/source/filter/inc/workbooksettings.hxx
index e384dec70853..02c8fa204a7f 100644
--- a/sc/source/filter/inc/workbooksettings.hxx
+++ b/sc/source/filter/inc/workbooksettings.hxx
@@ -98,7 +98,7 @@ public:
/** Returns the show objects mode (considered a view setting in Calc). */
sal_Int16 getApiShowObjectMode() const;
/** Returns the nulldate of this workbook. */
- css::util::Date getNullDate() const;
+ css::util::Date const & getNullDate() const;
private:
/** Updates date mode and unit converter nulldate. */
diff --git a/sc/source/filter/inc/xechart.hxx b/sc/source/filter/inc/xechart.hxx
index 94b98e7c1a9d..4fe5f5c3baa2 100644
--- a/sc/source/filter/inc/xechart.hxx
+++ b/sc/source/filter/inc/xechart.hxx
@@ -86,7 +86,7 @@ public:
/** Returns this root instance - for code readability in derived classes. */
inline const XclExpChRoot& GetChRoot() const { return *this; }
/** Returns the API Chart document model. */
- css::uno::Reference< css::chart2::XChartDocument >
+ css::uno::Reference< css::chart2::XChartDocument > const &
GetChartDocument() const;
/** Returns a reference to the parent chart data object. */
XclExpChChart& GetChartData() const;
diff --git a/sc/source/filter/inc/xeroot.hxx b/sc/source/filter/inc/xeroot.hxx
index d52a8edc6679..941e01ca61e5 100644
--- a/sc/source/filter/inc/xeroot.hxx
+++ b/sc/source/filter/inc/xeroot.hxx
@@ -182,7 +182,7 @@ public:
private:
/** Returns the local or global link manager, depending on current context. */
- XclExpRootData::XclExpLinkMgrRef GetLocalLinkMgrRef() const;
+ XclExpRootData::XclExpLinkMgrRef const & GetLocalLinkMgrRef() const;
private:
XclExpRootData& mrExpData; /// Reference to the global export data struct.
diff --git a/sc/source/filter/oox/commentsbuffer.cxx b/sc/source/filter/oox/commentsbuffer.cxx
index e29a278b6fb3..f6c146b62541 100644
--- a/sc/source/filter/oox/commentsbuffer.cxx
+++ b/sc/source/filter/oox/commentsbuffer.cxx
@@ -124,7 +124,7 @@ void Comment::importComment( SequenceInputStream& rStrm )
AddressConverter::convertToCellRangeUnchecked( maModel.maRange, aBinRange, getSheetIndex() );
}
-RichStringRef Comment::createText()
+RichStringRef const & Comment::createText()
{
maModel.mxText.reset( new RichString( *this ) );
return maModel.mxText;
diff --git a/sc/source/filter/oox/richstring.cxx b/sc/source/filter/oox/richstring.cxx
index b79f5e582b86..da88e98d7941 100644
--- a/sc/source/filter/oox/richstring.cxx
+++ b/sc/source/filter/oox/richstring.cxx
@@ -61,7 +61,7 @@ void RichStringPortion::setText( const OUString& rText )
maText = rText;
}
-FontRef RichStringPortion::createFont()
+FontRef const & RichStringPortion::createFont()
{
mxFont.reset( new Font( *this, false ) );
return mxFont;
diff --git a/sc/source/filter/oox/stylesbuffer.cxx b/sc/source/filter/oox/stylesbuffer.cxx
index 2e03ef8801a1..6b8b9422c117 100644
--- a/sc/source/filter/oox/stylesbuffer.cxx
+++ b/sc/source/filter/oox/stylesbuffer.cxx
@@ -2238,21 +2238,21 @@ Dxf::Dxf( const WorkbookHelper& rHelper ) :
{
}
-FontRef Dxf::createFont( bool bAlwaysNew )
+FontRef const & Dxf::createFont( bool bAlwaysNew )
{
if( bAlwaysNew || !mxFont )
mxFont.reset( new Font( *this, true ) );
return mxFont;
}
-BorderRef Dxf::createBorder( bool bAlwaysNew )
+BorderRef const & Dxf::createBorder( bool bAlwaysNew )
{
if( bAlwaysNew || !mxBorder )
mxBorder.reset( new Border( *this, true ) );
return mxBorder;
}
-FillRef Dxf::createFill( bool bAlwaysNew )
+FillRef const & Dxf::createFill( bool bAlwaysNew )
{
if( bAlwaysNew || !mxFill )
mxFill.reset( new Fill( *this, true ) );
diff --git a/sc/source/filter/oox/workbooksettings.cxx b/sc/source/filter/oox/workbooksettings.cxx
index dbe5473a0f88..c8cc6bd42d05 100644
--- a/sc/source/filter/oox/workbooksettings.cxx
+++ b/sc/source/filter/oox/workbooksettings.cxx
@@ -239,7 +239,7 @@ sal_Int16 WorkbookSettings::getApiShowObjectMode() const
return API_SHOWMODE_SHOW;
}
-css::util::Date WorkbookSettings::getNullDate() const
+css::util::Date const & WorkbookSettings::getNullDate() const
{
static const css::util::Date saDate1900 ( 30, 12, 1899 );
static const css::util::Date saDate1904 ( 1, 1, 1904 );
diff --git a/sc/source/filter/xml/xmlsubti.cxx b/sc/source/filter/xml/xmlsubti.cxx
index 88b3ede5fad7..a277b0da5ffc 100644
--- a/sc/source/filter/xml/xmlsubti.cxx
+++ b/sc/source/filter/xml/xmlsubti.cxx
@@ -222,7 +222,7 @@ void ScMyTables::AddColStyle(const sal_Int32 nRepeat, const OUString& rCellStyle
nCurrentColCount = std::min<sal_Int32>( nCurrentColCount, MAXCOLCOUNT );
}
-uno::Reference< drawing::XDrawPage > ScMyTables::GetCurrentXDrawPage()
+uno::Reference< drawing::XDrawPage > const & ScMyTables::GetCurrentXDrawPage()
{
if( (maCurrentCellPos.Tab() != nCurrentDrawPage) || !xDrawPage.is() )
{
@@ -234,7 +234,7 @@ uno::Reference< drawing::XDrawPage > ScMyTables::GetCurrentXDrawPage()
return xDrawPage;
}
-uno::Reference< drawing::XShapes > ScMyTables::GetCurrentXShapes()
+uno::Reference< drawing::XShapes > const & ScMyTables::GetCurrentXShapes()
{
if( (maCurrentCellPos.Tab() != nCurrentXShapes) || !xShapes.is() )
{
@@ -242,10 +242,8 @@ uno::Reference< drawing::XShapes > ScMyTables::GetCurrentXShapes()
rImport.GetShapeImport()->startPage(xShapes);
rImport.GetShapeImport()->pushGroupForSorting ( xShapes );
nCurrentXShapes = sal::static_int_cast<sal_Int16>(maCurrentCellPos.Tab());
- return xShapes;
}
- else
- return xShapes;
+ return xShapes;
}
bool ScMyTables::HasDrawPage()
diff --git a/sc/source/filter/xml/xmlsubti.hxx b/sc/source/filter/xml/xmlsubti.hxx
index 00176300c561..83a93b7806d1 100644
--- a/sc/source/filter/xml/xmlsubti.hxx
+++ b/sc/source/filter/xml/xmlsubti.hxx
@@ -88,9 +88,9 @@ public:
SCROW GetCurrentRow() const { return (maCurrentCellPos.Row() >= 0) ? maCurrentCellPos.Row() : 0; }
const css::uno::Reference< css::sheet::XSpreadsheet >&
GetCurrentXSheet() const { return xCurrentSheet; }
- css::uno::Reference< css::drawing::XDrawPage >
+ css::uno::Reference< css::drawing::XDrawPage > const &
GetCurrentXDrawPage();
- css::uno::Reference< css::drawing::XShapes >
+ css::uno::Reference< css::drawing::XShapes > const &
GetCurrentXShapes();
bool HasDrawPage();
bool HasXShapes();
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 509d22e9b346..4ce35d1c14c0 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -397,7 +397,7 @@ ScModelObj::~ScModelObj()
delete pPrinterOptions;
}
-uno::Reference< uno::XAggregation> ScModelObj::GetFormatter()
+uno::Reference< uno::XAggregation> const & ScModelObj::GetFormatter()
{
// pDocShell may be NULL if this is the base of a ScDocOptionsObj
if ( !xNumberAgg.is() && pDocShell )
diff --git a/sc/source/ui/vba/excelvbahelper.cxx b/sc/source/ui/vba/excelvbahelper.cxx
index e381c399dcc7..b6619f2409b7 100644
--- a/sc/source/ui/vba/excelvbahelper.cxx
+++ b/sc/source/ui/vba/excelvbahelper.cxx
@@ -109,7 +109,7 @@ class PasteCellsWarningReseter
{
private:
bool bInitialWarningState;
- static uno::Reference< sheet::XGlobalSheetSettings > getGlobalSheetSettings() throw ( uno::RuntimeException )
+ static uno::Reference< sheet::XGlobalSheetSettings > const & getGlobalSheetSettings() throw ( uno::RuntimeException )
{
static uno::Reference< sheet::XGlobalSheetSettings > xProps = sheet::GlobalSheetSettings::create( comphelper::getProcessComponentContext() );
return xProps;
diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx
index 5f3d8529fd24..aaba52dfd372 100644
--- a/sc/source/ui/vba/vbaapplication.cxx
+++ b/sc/source/ui/vba/vbaapplication.cxx
@@ -850,7 +850,7 @@ ScVbaApplication::Calculate() throw( script::BasicErrorException , uno::Runtime
xCalculatable->calculateAll();
}
-static uno::Reference< util::XPathSettings > lcl_getPathSettingsService( const uno::Reference< uno::XComponentContext >& xContext ) throw ( uno::RuntimeException )
+static uno::Reference< util::XPathSettings > const & lcl_getPathSettingsService( const uno::Reference< uno::XComponentContext >& xContext ) throw ( uno::RuntimeException )
{
static uno::Reference< util::XPathSettings > xPathSettings;
if ( !xPathSettings.is() )
diff --git a/sc/source/ui/vba/vbachartobject.cxx b/sc/source/ui/vba/vbachartobject.cxx
index 1c51d1e503a0..3d9778a4f1ad 100644
--- a/sc/source/ui/vba/vbachartobject.cxx
+++ b/sc/source/ui/vba/vbachartobject.cxx
@@ -41,7 +41,7 @@ ScVbaChartObject::ScVbaChartObject( const css::uno::Reference< ov::XHelperInterf
oShapeHelper.reset(new ShapeHelper(xShape));
}
-OUString ScVbaChartObject::getPersistName()
+OUString const & ScVbaChartObject::getPersistName()
{
if ( sPersistName.isEmpty() )
sPersistName = xNamed->getName();
diff --git a/sc/source/ui/vba/vbachartobject.hxx b/sc/source/ui/vba/vbachartobject.hxx
index 097ccf94bce9..95f5df95bc4d 100644
--- a/sc/source/ui/vba/vbachartobject.hxx
+++ b/sc/source/ui/vba/vbachartobject.hxx
@@ -43,7 +43,7 @@ class ScVbaChartObject : public ChartObjectImpl_BASE
OUString sPersistName;
std::unique_ptr<ov::ShapeHelper> oShapeHelper;
css::uno::Reference< css::container::XNamed > xNamedShape;
- OUString getPersistName();
+ OUString const & getPersistName();
css::uno::Reference< css::drawing::XShape > setShape() throw ( css::script::BasicErrorException );
public:
ScVbaChartObject( const css::uno::Reference< ov::XHelperInterface >& _xParent, const css::uno::Reference< css::uno::XComponentContext >& _xContext, const css::uno::Reference< css::table::XTableChart >& _xTableChart, const css::uno::Reference< css::drawing::XDrawPageSupplier >& _xDrawPageSupplier );
diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx
index ba2db5021e95..2035ba7d1454 100644
--- a/sc/source/ui/vba/vbaformat.cxx
+++ b/sc/source/ui/vba/vbaformat.cxx
@@ -773,7 +773,7 @@ ScVbaFormat< Ifc... >::initializeNumberFormats() throw ( script::BasicErrorExcep
}
template< typename... Ifc >
-uno::Reference< beans::XPropertyState >
+uno::Reference< beans::XPropertyState > const &
ScVbaFormat< Ifc... >::getXPropertyState() throw ( uno::RuntimeException )
{
if ( !xPropertyState.is() )
diff --git a/sc/source/ui/vba/vbaformat.hxx b/sc/source/ui/vba/vbaformat.hxx
index 1489ec6ee673..573f0664c892 100644
--- a/sc/source/ui/vba/vbaformat.hxx
+++ b/sc/source/ui/vba/vbaformat.hxx
@@ -49,7 +49,7 @@ protected:
bool mbCheckAmbiguoity;
bool mbAddIndent;
bool isAmbiguous(const OUString& _sPropertyName) throw ( css::script::BasicErrorException );
- css::uno::Reference< css::beans::XPropertyState > getXPropertyState() throw ( css::uno::RuntimeException );
+ css::uno::Reference< css::beans::XPropertyState > const & getXPropertyState() throw ( css::uno::RuntimeException );
void initializeNumberFormats() throw ( css::script::BasicErrorException, css::uno::RuntimeException );
SfxItemSet* getCurrentDataSet( ) throw (css::uno::RuntimeException, std::exception);
protected:
diff --git a/sc/source/ui/vba/vbaglobals.cxx b/sc/source/ui/vba/vbaglobals.cxx
index 930f5972073f..52a9e58d9fac 100644
--- a/sc/source/ui/vba/vbaglobals.cxx
+++ b/sc/source/ui/vba/vbaglobals.cxx
@@ -58,13 +58,13 @@ ScVbaGlobals::~ScVbaGlobals()
// XGlobals
-uno::Reference<excel::XApplication >
+uno::Reference<excel::XApplication > const &
ScVbaGlobals::getApplication() throw (uno::RuntimeException)
{
// OSL_TRACE("In ScVbaGlobals::getApplication");
- if ( !mxApplication.is() )
+ if ( !mxApplication.is() )
mxApplication.set( new ScVbaApplication( mxContext) );
- return mxApplication;
+ return mxApplication;
}
uno::Reference<excel::XApplication > SAL_CALL
diff --git a/sc/source/ui/vba/vbaglobals.hxx b/sc/source/ui/vba/vbaglobals.hxx
index b2195d40e81f..fc3fe0536d54 100644
--- a/sc/source/ui/vba/vbaglobals.hxx
+++ b/sc/source/ui/vba/vbaglobals.hxx
@@ -37,7 +37,7 @@ typedef ::cppu::ImplInheritanceHelper< VbaGlobalsBase, ov::excel::XGlobals > ScV
class ScVbaGlobals : public ScVbaGlobals_BASE
{
css::uno::Reference< ov::excel::XApplication > mxApplication;
- css::uno::Reference< ov::excel::XApplication > SAL_CALL getApplication()
+ css::uno::Reference< ov::excel::XApplication > const & SAL_CALL getApplication()
throw (css::uno::RuntimeException);
public:
diff --git a/sc/source/ui/vba/vbasheetobjects.cxx b/sc/source/ui/vba/vbasheetobjects.cxx
index a677a0ea3fc9..5c52886efc0d 100644
--- a/sc/source/ui/vba/vbasheetobjects.cxx
+++ b/sc/source/ui/vba/vbasheetobjects.cxx
@@ -344,7 +344,7 @@ public:
sal_Int16 nComponentType ) throw (uno::RuntimeException);
protected:
- uno::Reference< container::XIndexContainer > createForm() throw (uno::RuntimeException);
+ uno::Reference< container::XIndexContainer > const & createForm() throw (uno::RuntimeException);
virtual bool implPickShape( const uno::Reference< drawing::XShape >& rxShape ) const override;
virtual OUString implGetShapeServiceName() const override;
@@ -372,7 +372,7 @@ ScVbaControlContainer::ScVbaControlContainer(
{
}
-uno::Reference< container::XIndexContainer > ScVbaControlContainer::createForm() throw (uno::RuntimeException)
+uno::Reference< container::XIndexContainer > const & ScVbaControlContainer::createForm() throw (uno::RuntimeException)
{
if( !mxFormIC.is() )
{