summaryrefslogtreecommitdiff
path: root/include/svl/srchitem.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-19 09:31:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-19 11:25:18 +0000
commit396138a6bc7192abe0837b419283860d3331f607 (patch)
treef80818ba86220abb8db205b402429e3d45aa62d1 /include/svl/srchitem.hxx
parent8b4705e0e0c76503b1ca61cb567d222f49466fc5 (diff)
Resolves: coverity#705366 Mixing enum types
and coverity#705367 Mixing enum types coverity#705371 Mixing enum types coverity#982694 Mixing enum types coverity#1027717 Mixing enum types coverity#1371228 Mixing enum types coverity#1371242 Mixing enum types coverity#1371280 Mixing enum types coverity#1371310 Mixing enum types MapUnit and SfxMapUnit share the same values and are freely cast from one to the other. Now that commit d30a4298bdb5ba53cd1fe659f2b742f218a2e527 Date: Thu Aug 11 15:02:19 2016 +0200 loplugin:unusedenumconstants in package..svtools removed the SfxMapUnit entries that were directly unused, they don't match anymore and casting from one to the other is dangerous. Why there was two of these anyway escapes me, get rid of SfxMapUnit and just use MapUnit universally Change-Id: I4db5dcd04b59be2f85b62b728f96c90afe00c57e Reviewed-on: https://gerrit.libreoffice.org/28234 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svl/srchitem.hxx')
-rw-r--r--include/svl/srchitem.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/svl/srchitem.hxx b/include/svl/srchitem.hxx
index d53abbdbd2c1..54c66cbb96d1 100644
--- a/include/svl/srchitem.hxx
+++ b/include/svl/srchitem.hxx
@@ -103,9 +103,9 @@ public:
virtual bool operator == ( const SfxPoolItem& ) const override;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual bool GetPresentation( SfxItemPresentation ePres,
- SfxMapUnit eCoreMetric,
- SfxMapUnit ePresMetric,
- OUString &rText, const IntlWrapper * = nullptr ) const override;
+ MapUnit eCoreMetric,
+ MapUnit ePresMetric,
+ OUString &rText, const IntlWrapper * = nullptr ) const override;
// ConfigItem
virtual void Notify( const css::uno::Sequence< OUString > &rPropertyNames ) override;