summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-08 17:45:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-08 17:45:08 +0200
commit9222f5d065bb2aafcfef93e77c58a82672a9ad22 (patch)
tree0dfad9f13099a73ecf3893e9cbdd5020b55cd7b3 /reportdesign
parentc4dca26eafd60dc4c4f19e0be0b8e086108b3048 (diff)
A UNO Any can't contain an Any
...and css::uno::makeAny<css::uno::Any>() was never meant to be used. Introduce css::uno::toAny for the (template-code) cases that shall return an Any for both Any and non-Any inputs. Change-Id: Ifa977d73f1da71b2fedde7e8140b19497c4a0257
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/core/api/ReportDefinition.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx
index a0013a317c11..6dd1419c57e2 100644
--- a/reportdesign/source/core/api/ReportDefinition.cxx
+++ b/reportdesign/source/core/api/ReportDefinition.cxx
@@ -2351,7 +2351,7 @@ uno::Any SAL_CALL OStylesHelper::getByIndex( sal_Int32 Index ) throw(lang::Index
::osl::MutexGuard aGuard(m_aMutex);
if ( Index < 0 || Index >= static_cast<sal_Int32>(m_aElementsPos.size()) )
throw lang::IndexOutOfBoundsException();
- return uno::makeAny(m_aElementsPos[Index]->second);
+ return m_aElementsPos[Index]->second;
}
// container::XNameAccess
@@ -2361,7 +2361,7 @@ uno::Any SAL_CALL OStylesHelper::getByName( const OUString& aName ) throw(contai
TStyleElements::iterator aFind = m_aElements.find(aName);
if ( aFind == m_aElements.end() )
throw container::NoSuchElementException();
- return uno::makeAny(aFind->second);
+ return aFind->second;
}
uno::Sequence< OUString > SAL_CALL OStylesHelper::getElementNames( ) throw(uno::RuntimeException, std::exception)