summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 04:57:20 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-28 22:14:20 +0100
commit76b2fa2f85f25a77bbcfbdd3fd3e3caea897fd80 (patch)
tree3fb967313f52bff2bcc3514c4603dbaeaa2c74e6
parentef9d2e03bec142da915fb021a6ccbfc9df519651 (diff)
use makeAny
Change-Id: I841ed6bde0de9677df9fbccfff1b6e51a996bc61
-rw-r--r--sw/source/core/unocore/unotbl.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx
index 0a3636139ad2..08941e41f9c2 100644
--- a/sw/source/core/unocore/unotbl.cxx
+++ b/sw/source/core/unocore/unotbl.cxx
@@ -4775,9 +4775,7 @@ uno::Any SwXTableRows::getByIndex(sal_Int32 nIndex)
pXRow = new SwXTextTableRow(pFrmFmt, pLine);
uno::Reference< beans::XPropertySet > xRet =
(beans::XPropertySet*)pXRow;
- uno::Any aRet;
- aRet.setValue(&xRet, cppu::UnoType<beans::XPropertySet>::get());
- return aRet;
+ return uno::makeAny(xRet);
}
uno::Type SAL_CALL SwXTableRows::getElementType(void) throw( uno::RuntimeException, std::exception )