From 2431477337f4ac4384ba615f76bfb5904f1a3b47 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 11 Dec 2019 20:57:45 +0000 Subject: use covariant return type for SfxPoolItem::Clone MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and can then remove some casting Change-Id: Id821c32ca2cbcdb7f57ef7a5fa1960042e630ffc Reviewed-on: https://gerrit.libreoffice.org/85022 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/editeng/charhiddenitem.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/editeng/charhiddenitem.hxx') diff --git a/include/editeng/charhiddenitem.hxx b/include/editeng/charhiddenitem.hxx index 8cc8df501149..ed72e08dcec0 100644 --- a/include/editeng/charhiddenitem.hxx +++ b/include/editeng/charhiddenitem.hxx @@ -34,7 +34,7 @@ class EDITENG_DLLPUBLIC SvxCharHiddenItem final : public SfxBoolItem public: SvxCharHiddenItem( const bool bHidden /*= false*/, const sal_uInt16 nId ); - virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; + virtual SvxCharHiddenItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool GetPresentation( SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, -- cgit