summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdoattr.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-02 11:16:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-03 16:03:48 +0100
commitaa7f880e8a847686bc4ec2d8ca5f74f39c32abac (patch)
treee10fb73e9e0d7320d22f53dada73c3baba8fe2f8 /svx/source/svdraw/svdoattr.cxx
parentbc2ae79f81c8aa081d6340348c70c0440f6e895e (diff)
use more TypedWhichId in SdrObject::GetObjectItem
Change-Id: Iacaffa4bfcca2b594d962985fb9fc93712c4464c Reviewed-on: https://gerrit.libreoffice.org/49137 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/svdraw/svdoattr.cxx')
-rw-r--r--svx/source/svdraw/svdoattr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdoattr.cxx b/svx/source/svdraw/svdoattr.cxx
index c042d6aa35e1..1f118f838f84 100644
--- a/svx/source/svdraw/svdoattr.cxx
+++ b/svx/source/svdraw/svdoattr.cxx
@@ -140,9 +140,9 @@ sal_Int32 SdrAttrObj::ImpGetLineWdt() const
{
sal_Int32 nRetval(0);
- if(drawing::LineStyle_NONE != static_cast<const XLineStyleItem&>(GetObjectItem(XATTR_LINESTYLE)).GetValue())
+ if(drawing::LineStyle_NONE != GetObjectItem(XATTR_LINESTYLE).GetValue())
{
- nRetval = static_cast<const XLineWidthItem&>(GetObjectItem(XATTR_LINEWIDTH)).GetValue();
+ nRetval = GetObjectItem(XATTR_LINEWIDTH).GetValue();
}
return nRetval;