summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-27 16:17:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-27 20:36:47 +0200
commitb9d2c3345a14420ae2f936ffa37f269fcfe74475 (patch)
tree33b6e5d2870427e355009249520a5c8a3669c79c /sd
parent8cd7e7dfe6630648d110fa77991c283c8bf069bb (diff)
loplugin:constantparam in sd,sdext
Change-Id: Idc3507b80da046aca00283e99fdca35cb624c3da Reviewed-on: https://gerrit.libreoffice.org/43952 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/html/htmlex.cxx8
-rw-r--r--sd/source/filter/html/htmlex.hxx2
2 files changed, 2 insertions, 8 deletions
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx
index 0ab7c5926b96..428605c5a964 100644
--- a/sd/source/filter/html/htmlex.cxx
+++ b/sd/source/filter/html/htmlex.cxx
@@ -2729,8 +2729,7 @@ OUString HtmlExport::CreateLink( const OUString& aLink,
}
// creates a image tag
-OUString HtmlExport::CreateImage( const OUString& aImage, const OUString& aAltText,
- sal_Int16 nWidth )
+OUString HtmlExport::CreateImage( const OUString& aImage, const OUString& aAltText )
{
OUStringBuffer aStr( "<img src=\"");
aStr.append(aImage);
@@ -2746,11 +2745,6 @@ OUString HtmlExport::CreateImage( const OUString& aImage, const OUString& aAltTe
{
// Agerskov: HTML 4.01 has to have an alt attribute even if it is an empty string
aStr.append(" alt=\"\"");
- }
-
- if(nWidth > -1)
- {
- aStr.append(" width=" + OUString::number(nWidth));
}
aStr.append('>');
diff --git a/sd/source/filter/html/htmlex.hxx b/sd/source/filter/html/htmlex.hxx
index e600f54047eb..f7eedc1c5e4e 100644
--- a/sd/source/filter/html/htmlex.hxx
+++ b/sd/source/filter/html/htmlex.hxx
@@ -171,7 +171,7 @@ class HtmlExport final
static OUString CreateLink( const OUString& aLink, const OUString& aText,
const OUString& aTarget = OUString());
- static OUString CreateImage( const OUString& aImage, const OUString& aAltText, sal_Int16 nWidth = -1 );
+ static OUString CreateImage( const OUString& aImage, const OUString& aAltText );
OUString CreateNavBar( sal_uInt16 nSdPage, bool bIsText ) const;
OUString CreateBodyTag() const;