summaryrefslogtreecommitdiff
path: root/sw/source/filter/html
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/filter/html')
-rw-r--r--sw/source/filter/html/css1atr.cxx2
-rw-r--r--sw/source/filter/html/htmlatr.cxx2
-rw-r--r--sw/source/filter/html/htmlforw.cxx6
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/filter/html/css1atr.cxx b/sw/source/filter/html/css1atr.cxx
index ba607ed812c9..e16bb4d642c9 100644
--- a/sw/source/filter/html/css1atr.cxx
+++ b/sw/source/filter/html/css1atr.cxx
@@ -1600,7 +1600,7 @@ static Writer& OutCSS1_SwFormat( Writer& rWrt, const SwFormat& rFormat,
if( USER_FMT & nPoolFormatId )
{
// user templates
- const OUString aNm(rFormat.GetName());
+ const OUString& aNm(rFormat.GetName());
if (aNm == "DD 1" || aNm == "DT 1")
rHTMLWrt.m_nDfltBottomMargin = 0;
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx
index fe8597ea5979..884bd34b24af 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -1679,7 +1679,7 @@ void HTMLEndPosLst::InsertNoScript( const SfxPoolItem& rItem,
case HTML_AUTOFMT_VALUE:
{
const SwFormatAutoFormat& rAutoFormat = static_cast<const SwFormatAutoFormat&>(rItem);
- const std::shared_ptr<SfxItemSet> pSet = rAutoFormat.GetStyleHandle();
+ const std::shared_ptr<SfxItemSet>& pSet = rAutoFormat.GetStyleHandle();
if( pSet.get() )
Insert( *pSet.get(), nStart, nEnd, rFormatInfos, true, bParaAttrs );
}
diff --git a/sw/source/filter/html/htmlforw.cxx b/sw/source/filter/html/htmlforw.cxx
index 591a0cebecfc..23ab86eb0ca6 100644
--- a/sw/source/filter/html/htmlforw.cxx
+++ b/sw/source/filter/html/htmlforw.cxx
@@ -641,7 +641,7 @@ const SdrObject *SwHTMLWriter::GetHTMLControl( const SwDrawFrameFormat& rFormat
return nullptr;
const SdrUnoObj& rFormObj = dynamic_cast<const SdrUnoObj&>(*pObj);
- uno::Reference< awt::XControlModel > xControlModel =
+ const uno::Reference< awt::XControlModel >& xControlModel =
rFormObj.GetUnoControlModel();
OSL_ENSURE( xControlModel.is(), "UNO-Control ohne Model" );
@@ -691,7 +691,7 @@ Writer& OutHTML_DrawFrameFormatAsControl( Writer& rWrt,
const SdrUnoObj& rFormObj,
bool bInCntnr )
{
- uno::Reference< awt::XControlModel > xControlModel =
+ const uno::Reference< awt::XControlModel >& xControlModel =
rFormObj.GetUnoControlModel();
OSL_ENSURE( xControlModel.is(), "UNO-Control ohne Model" );
@@ -1280,7 +1280,7 @@ static void AddControl( HTMLControls& rControls,
const SdrUnoObj& rFormObj,
sal_uInt32 nNodeIdx )
{
- uno::Reference< awt::XControlModel > xControlModel =
+ const uno::Reference< awt::XControlModel >& xControlModel =
rFormObj.GetUnoControlModel();
if( !xControlModel.is() )
return;