summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/ww8/attributeoutputbase.hxx2
-rw-r--r--sw/source/ui/vba/vbaapplication.cxx2
-rw-r--r--sw/source/ui/vba/vbaapplication.hxx2
-rw-r--r--sw/source/ui/vba/vbamailmerge.cxx2
-rw-r--r--sw/source/ui/vba/vbamailmerge.hxx2
-rw-r--r--sw/source/uibase/shells/textsh1.cxx4
6 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/filter/ww8/attributeoutputbase.hxx b/sw/source/filter/ww8/attributeoutputbase.hxx
index fc1648e77031..7a9100937163 100644
--- a/sw/source/filter/ww8/attributeoutputbase.hxx
+++ b/sw/source/filter/ww8/attributeoutputbase.hxx
@@ -682,7 +682,7 @@ public:
sal_Char GetDirective() { return m_cDirective; }
sal_uInt32 GetRubyHeight() { return m_nRubyHeight; }
sal_uInt32 GetBaseHeight() { return m_nBaseHeight; }
- OUString GetFontFamily() { return m_sFontFamily; }
+ OUString const & GetFontFamily() { return m_sFontFamily; }
};
#endif // INCLUDED_SW_SOURCE_FILTER_WW8_ATTRIBUTEOUTPUTBASE_HXX
diff --git a/sw/source/ui/vba/vbaapplication.cxx b/sw/source/ui/vba/vbaapplication.cxx
index e4f0363ede4b..a1ff66bdaf1a 100644
--- a/sw/source/ui/vba/vbaapplication.cxx
+++ b/sw/source/ui/vba/vbaapplication.cxx
@@ -139,7 +139,7 @@ SwVbaApplication::getActiveSwVbaWindow()
return new SwVbaWindow( uno::Reference< XHelperInterface >(), mxContext, xModel, xController );
}
-uno::Reference< css::uno::XComponentContext >
+uno::Reference< css::uno::XComponentContext > const &
SwVbaApplication::getContext()
{
return mxContext;
diff --git a/sw/source/ui/vba/vbaapplication.hxx b/sw/source/ui/vba/vbaapplication.hxx
index 6ef51fec5d37..96b4be10100f 100644
--- a/sw/source/ui/vba/vbaapplication.hxx
+++ b/sw/source/ui/vba/vbaapplication.hxx
@@ -58,7 +58,7 @@ public:
void RemoveSink( sal_uInt32 nNumber );
SwVbaWindow* getActiveSwVbaWindow();
- css::uno::Reference< css::uno::XComponentContext > getContext();
+ css::uno::Reference< css::uno::XComponentContext > const & getContext();
// XApplication
virtual OUString SAL_CALL getName() override;
diff --git a/sw/source/ui/vba/vbamailmerge.cxx b/sw/source/ui/vba/vbamailmerge.cxx
index 59711d7de8a8..48973f80963f 100644
--- a/sw/source/ui/vba/vbamailmerge.cxx
+++ b/sw/source/ui/vba/vbamailmerge.cxx
@@ -20,7 +20,7 @@ SwVbaMailMerge::SwVbaMailMerge(const css::uno::Reference<ooo::vba::XHelperInterf
SwVbaMailMerge::~SwVbaMailMerge() {}
-rtl::Reference<SwVbaMailMerge>
+rtl::Reference<SwVbaMailMerge> const&
SwVbaMailMerge::get(const css::uno::Reference<ooo::vba::XHelperInterface>& xParent,
const css::uno::Reference<css::uno::XComponentContext>& xContext)
{
diff --git a/sw/source/ui/vba/vbamailmerge.hxx b/sw/source/ui/vba/vbamailmerge.hxx
index 7718815da344..bfc28667d784 100644
--- a/sw/source/ui/vba/vbamailmerge.hxx
+++ b/sw/source/ui/vba/vbamailmerge.hxx
@@ -27,7 +27,7 @@ class SwVbaMailMerge : public SwVbaMailMerge_BASE
public:
virtual ~SwVbaMailMerge() override;
- static rtl::Reference<SwVbaMailMerge>
+ static rtl::Reference<SwVbaMailMerge> const&
get(const css::uno::Reference<ooo::vba::XHelperInterface>& xParent,
const css::uno::Reference<css::uno::XComponentContext>& xContext);
diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx
index e905d9667913..fe39d8b76c73 100644
--- a/sw/source/uibase/shells/textsh1.cxx
+++ b/sw/source/uibase/shells/textsh1.cxx
@@ -129,7 +129,7 @@ using namespace ::com::sun::star::container;
using namespace com::sun::star::style;
using namespace svx::sidebar;
-static void sw_CharDialogResult(const SfxItemSet* pSet, SwWrtShell &rWrtSh, std::shared_ptr<SfxItemSet> pCoreSet, bool bSel, bool bSelectionPut, SfxRequest *pReq);
+static void sw_CharDialogResult(const SfxItemSet* pSet, SwWrtShell &rWrtSh, std::shared_ptr<SfxItemSet> const & pCoreSet, bool bSel, bool bSelectionPut, SfxRequest *pReq);
void sw_CharDialog(SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot, const SfxItemSet *pArgs, SfxRequest *pReq )
{
@@ -220,7 +220,7 @@ void sw_CharDialog(SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot, const
}
}
-static void sw_CharDialogResult(const SfxItemSet* pSet, SwWrtShell &rWrtSh, std::shared_ptr<SfxItemSet> pCoreSet, bool bSel, bool bSelectionPut, SfxRequest *pReq)
+static void sw_CharDialogResult(const SfxItemSet* pSet, SwWrtShell &rWrtSh, std::shared_ptr<SfxItemSet> const & pCoreSet, bool bSel, bool bSelectionPut, SfxRequest *pReq)
{
SfxItemSet aTmpSet( *pSet );
::ConvertAttrGenToChar(aTmpSet, *pCoreSet);