diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-28 01:24:05 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-29 10:36:46 +0100 |
commit | 9bc9b09308a6d5764bf606e601f2a7b927552296 (patch) | |
tree | 0eb9e52b2df23ddad2dea51c11767fd1ee2d6770 /sw/source/core | |
parent | cda0788348a12c5453b23421291c86e8cda34649 (diff) |
remove hugely scoped superficial Any
Change-Id: Icba8dfb466afb085b52ac55d5eb95b3f94d7c116
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 5e4ae2679e44..bdc6f822730c 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -477,7 +477,6 @@ uno::Any SwXStyleFamily::getByIndex(sal_Int32 nIndex) throw( lang::IndexOutOfBoundsException, lang::WrappedTargetException, uno::RuntimeException, std::exception ) { SolarMutexGuard aGuard; - uno::Any aRet; if(nIndex < 0) throw lang::IndexOutOfBoundsException(); if(!m_pBasePool) @@ -598,8 +597,7 @@ uno::Any SwXStyleFamily::getByIndex(sal_Int32 nIndex) xStyle = new SwXStyle(*m_pBasePool, m_eFamily, m_pDocShell->GetDoc(), sStyleName); } } - aRet.setValue(&xStyle, cppu::UnoType<style::XStyle>::get()); - return aRet; + return uno::makeAny(xStyle); } uno::Any SwXStyleFamily::getByName(const OUString& rName) |