summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotxln.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-24 14:29:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-25 08:12:17 +0200
commit4a340e36e8d3713806719351f455711c1254a178 (patch)
tree4be5ffdd176b2f45e4f549f7eb4d88da9225c18e /svx/source/svdraw/svdotxln.cxx
parent50fc62ce76bc51f18b16eae937761d0a8872df3e (diff)
loplugin:constantparam
add the results files so I can just see the diff in future Change-Id: Ia20a1aa6418be95ed620719cde340c00b7b053e1 Reviewed-on: https://gerrit.libreoffice.org/37988 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdotxln.cxx')
-rw-r--r--svx/source/svdraw/svdotxln.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/svdraw/svdotxln.cxx b/svx/source/svdraw/svdotxln.cxx
index cff5b03aae4c..8fcf70594a88 100644
--- a/svx/source/svdraw/svdotxln.cxx
+++ b/svx/source/svdraw/svdotxln.cxx
@@ -119,10 +119,9 @@ SdrObjUserData* ImpSdrObjTextLinkUserData::Clone(SdrObject* ) const
}
-void SdrTextObj::SetTextLink(const OUString& rFileName, const OUString& rFilterName, rtl_TextEncoding eCharSet)
+void SdrTextObj::SetTextLink(const OUString& rFileName, const OUString& rFilterName)
{
- if(eCharSet == RTL_TEXTENCODING_DONTKNOW)
- eCharSet = osl_getThreadTextEncoding();
+ rtl_TextEncoding eCharSet = osl_getThreadTextEncoding();
ImpSdrObjTextLinkUserData* pData=GetLinkUserData();
if (pData!=nullptr) {