summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-25 18:56:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-27 10:10:52 +0200
commitf3049f68584811bb897873f35e0c302898af2d31 (patch)
treeb77f8bee3f733b8f2565a64276e33387576a26ac /filter
parent28fc0962b10519ab84654d189d2ad0cca8f84f95 (diff)
loplugin:constantparam
Change-Id: I966dcf87be021520e7cc394338b9c0574bb8afee Reviewed-on: https://gerrit.libreoffice.org/53541 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/eschesdo.cxx9
-rw-r--r--filter/source/msfilter/eschesdo.hxx3
2 files changed, 5 insertions, 7 deletions
diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx
index 19fb9483eed7..db2c64d8b4f9 100644
--- a/filter/source/msfilter/eschesdo.cxx
+++ b/filter/source/msfilter/eschesdo.cxx
@@ -697,7 +697,7 @@ sal_uInt32 ImplEESdrWriter::ImplWriteShape( ImplEESdrObject& rObj,
if( bAdditionalText )
{
mpEscherEx->EndShape( nShapeType, nShapeID );
- ImplWriteAdditionalText( rObj, Point() );
+ ImplWriteAdditionalText( rObj );
}
} while ( false );
@@ -709,8 +709,7 @@ sal_uInt32 ImplEESdrWriter::ImplWriteShape( ImplEESdrObject& rObj,
return nShapeID;
}
-void ImplEESdrWriter::ImplWriteAdditionalText( ImplEESdrObject& rObj,
- const Point& rTextRefPoint )
+void ImplEESdrWriter::ImplWriteAdditionalText( ImplEESdrObject& rObj )
{
sal_uInt32 nShapeID = 0;
sal_uInt16 nShapeType = 0;
@@ -733,8 +732,8 @@ void ImplEESdrWriter::ImplWriteAdditionalText( ImplEESdrObject& rObj,
//2do: this does not work right
double fDist = hypot( rObj.GetRect().GetWidth(),
rObj.GetRect().GetHeight() );
- rObj.SetRect( tools::Rectangle( rTextRefPoint,
- Point( static_cast<sal_Int32>( rTextRefPoint.X() + fDist ), rTextRefPoint.Y() - 1 ) ) );
+ rObj.SetRect( tools::Rectangle( Point(),
+ Point( static_cast<sal_Int32>( fDist ), -1 ) ) );
mpEscherEx->OpenContainer( ESCHER_SpContainer );
mpEscherEx->AddShape( ESCHER_ShpInst_TextBox, ShapeFlag::HaveShapeProperty | ShapeFlag::HaveAnchor );
diff --git a/filter/source/msfilter/eschesdo.hxx b/filter/source/msfilter/eschesdo.hxx
index 431c4520b762..3cdb9ef430f8 100644
--- a/filter/source/msfilter/eschesdo.hxx
+++ b/filter/source/msfilter/eschesdo.hxx
@@ -124,8 +124,7 @@ class ImplEESdrWriter
const bool bOOxmlExport = false ); // returns ShapeID
static void ImplFlipBoundingBox( ImplEESdrObject& rObj, EscherPropertyContainer& rPropOpt );
void ImplWriteAdditionalText(
- ImplEESdrObject& rObj,
- const Point& rTextRefPoint );
+ ImplEESdrObject& rObj );
sal_uInt32 ImplEnterAdditionalTextGroup(
const css::uno::Reference< css::drawing::XShape >& rShape,
const tools::Rectangle* pBoundRect );