summaryrefslogtreecommitdiffstats
path: root/include/editeng/hyphenzoneitem.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-12-11 20:57:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-12-12 21:12:10 +0100
commit2431477337f4ac4384ba615f76bfb5904f1a3b47 (patch)
tree6f676441983e9b3c8440600d09a49478353e1faf /include/editeng/hyphenzoneitem.hxx
parentScShapeChild has broken copy functions (diff)
downloadcore-2431477337f4ac4384ba615f76bfb5904f1a3b47.tar.gz
core-2431477337f4ac4384ba615f76bfb5904f1a3b47.zip
use covariant return type for SfxPoolItem::Clone
and can then remove some casting Change-Id: Id821c32ca2cbcdb7f57ef7a5fa1960042e630ffc Reviewed-on: https://gerrit.libreoffice.org/85022 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/editeng/hyphenzoneitem.hxx')
-rw-r--r--include/editeng/hyphenzoneitem.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/editeng/hyphenzoneitem.hxx b/include/editeng/hyphenzoneitem.hxx
index 0b573f43c9f5..9b3abd338839 100644
--- a/include/editeng/hyphenzoneitem.hxx
+++ b/include/editeng/hyphenzoneitem.hxx
@@ -55,7 +55,7 @@ public:
MapUnit ePresMetric,
OUString &rText, const IntlWrapper& ) const override;
- virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
+ virtual SvxHyphenZoneItem* Clone( SfxItemPool *pPool = nullptr ) const override;
void SetHyphen( const bool bNew ) { bHyphen = bNew; }
bool IsHyphen() const { return bHyphen; }