summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2014-03-24 09:49:01 +0100
committerJan Holesovsky <kendy@collabora.com>2014-03-24 10:43:41 +0100
commitf7c802b46d1c7cafe4c8e0cbec2ce46854862812 (patch)
tree18781ff2726e353ef28e106fd268b2c300a75ad9 /sw
parentece15872c8e049a11773083edd80f55fb08b8bf4 (diff)
No need for a template here.
Change-Id: Id56f5c394a4973b9d9464d79a2e94cda38f192de
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxsdrexport.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/docxsdrexport.cxx b/sw/source/filter/ww8/docxsdrexport.cxx
index 108347703abb..c80cce040c2e 100644
--- a/sw/source/filter/ww8/docxsdrexport.cxx
+++ b/sw/source/filter/ww8/docxsdrexport.cxx
@@ -50,10 +50,9 @@ using namespace oox;
namespace
{
-template<class T>
-T lclGetProperty(uno::Reference<drawing::XShape> rShape, const OUString& rPropName)
+uno::Sequence<beans::PropertyValue> lclGetProperty(uno::Reference<drawing::XShape> rShape, const OUString& rPropName)
{
- T aResult;
+ uno::Sequence<beans::PropertyValue> aResult;
uno::Reference<beans::XPropertySet> xPropertySet(rShape, uno::UNO_QUERY);
uno::Reference<beans::XPropertySetInfo> xPropSetInfo;
@@ -73,7 +72,7 @@ OUString lclGetAnchorIdFromGrabBag(const SdrObject* pObj)
OUString aResult;
uno::Reference<drawing::XShape> xShape(const_cast<SdrObject*>(pObj)->getUnoShape(), uno::UNO_QUERY);
uno::Sequence< beans::PropertyValue > propList =
- lclGetProperty< uno::Sequence<beans::PropertyValue> >(xShape, "FrameInteropGrabBag");
+ lclGetProperty(xShape, "FrameInteropGrabBag");
for (sal_Int32 nProp = 0; nProp < propList.getLength(); ++nProp)
{
OUString aPropName = propList[nProp].Name;
@@ -609,7 +608,7 @@ void DocxSdrExport::writeDMLDrawing(const SdrObject* pSdrObject, const SwFrmFmt*
bool bLockedCanvas = false;
uno::Sequence< beans::PropertyValue > propList =
- lclGetProperty< uno::Sequence<beans::PropertyValue> >(xShape, "InteropGrabBag");
+ lclGetProperty(xShape, "InteropGrabBag");
for (sal_Int32 nProp=0; nProp < propList.getLength(); ++nProp)
{
OUString propName = propList[nProp].Name;