From ef291100ad894db1c0d4fdfd5dbb46c20ee68161 Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Fri, 27 Nov 2015 23:16:08 +0100 Subject: use enum right away Change-Id: I6a9469e9fde9a22c7a1c83c7e98e047a2db583bf --- sw/inc/unostyle.hxx | 2 +- sw/source/core/unocore/unostyle.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sw/inc/unostyle.hxx b/sw/inc/unostyle.hxx index 7a96fbb545ba..659c2bdf83b5 100644 --- a/sw/inc/unostyle.hxx +++ b/sw/inc/unostyle.hxx @@ -109,7 +109,7 @@ class SwXStyleFamily : public cppu::WeakImplHelper SwXStyle* _FindStyle(const OUString& rStyleName) const; public: - SwXStyleFamily(SwDocShell* pDocShell, sal_uInt16 nFamily); + SwXStyleFamily(SwDocShell* pDocShell, const SfxStyleFamily eFamily); virtual ~SwXStyleFamily(); //XIndexAccess diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 8a73306ca2d2..61465e31e11d 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -290,8 +290,8 @@ public: SwDoc* getDoc() const { return pDoc; } }; -SwXStyleFamily::SwXStyleFamily(SwDocShell* pDocSh, sal_uInt16 nFamily) : - m_eFamily((SfxStyleFamily)nFamily), +SwXStyleFamily::SwXStyleFamily(SwDocShell* pDocSh, const SfxStyleFamily eFamily) : + m_eFamily(eFamily), m_pBasePool(pDocSh->GetStyleSheetPool()), m_pDocShell(pDocSh) { -- cgit v1.2.3