diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-27 23:16:08 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-28 12:46:39 +0100 |
commit | ef291100ad894db1c0d4fdfd5dbb46c20ee68161 (patch) | |
tree | 520e6650bb30ff22e9b3b82e0d7054b510acabf5 | |
parent | Revert "gengal: create an ini / rc file - to bootstrap services properly." (diff) | |
download | core-ef291100ad894db1c0d4fdfd5dbb46c20ee68161.tar.gz core-ef291100ad894db1c0d4fdfd5dbb46c20ee68161.zip |
use enum right away
Change-Id: I6a9469e9fde9a22c7a1c83c7e98e047a2db583bf
-rw-r--r-- | sw/inc/unostyle.hxx | 2 | ||||
-rw-r--r-- | 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) { |