diff options
Diffstat (limited to 'sw/source/core/uibase/uno/unotxdoc.cxx')
-rw-r--r-- | sw/source/core/uibase/uno/unotxdoc.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/uibase/uno/unotxdoc.cxx b/sw/source/core/uibase/uno/unotxdoc.cxx index 10fdac83c260..d5aabc5dad66 100644 --- a/sw/source/core/uibase/uno/unotxdoc.cxx +++ b/sw/source/core/uibase/uno/unotxdoc.cxx @@ -3477,7 +3477,7 @@ Sequence< OUString > SwXLinkTargetSupplier::getSupportedServiceNames(void) } SwXLinkNameAccessWrapper::SwXLinkNameAccessWrapper( - Reference< XNameAccess > xAccess, const OUString& rLinkDisplayName, OUString sSuffix ) : + Reference< XNameAccess > xAccess, const OUString& rLinkDisplayName, const OUString& sSuffix ) : xRealAccess(xAccess), pPropSet(aSwMapProvider.GetPropertySet(PROPERTY_MAP_LINK_TARGET)), sLinkSuffix(sSuffix), @@ -3487,7 +3487,7 @@ SwXLinkNameAccessWrapper::SwXLinkNameAccessWrapper( } SwXLinkNameAccessWrapper::SwXLinkNameAccessWrapper(SwXTextDocument& rxDoc, - const OUString& rLinkDisplayName, OUString sSuffix) : + const OUString& rLinkDisplayName, const OUString& sSuffix) : pPropSet(aSwMapProvider.GetPropertySet(PROPERTY_MAP_LINK_TARGET)), sLinkSuffix(sSuffix), sLinkDisplayName(rLinkDisplayName), @@ -3666,9 +3666,10 @@ void SwXLinkNameAccessWrapper::setPropertyValue( throw UnknownPropertyException(); } -static Any lcl_GetDisplayBitmap(OUString sLinkSuffix) +static Any lcl_GetDisplayBitmap(const OUString& _sLinkSuffix) { Any aRet; + OUString sLinkSuffix = _sLinkSuffix; if(!sLinkSuffix.isEmpty()) sLinkSuffix = sLinkSuffix.copy(1); sal_uInt16 nImgId = USHRT_MAX; |