summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-11 15:16:51 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-12 08:26:40 +0100
commita62c2a5fa5d5be465b0edab6adeb1fd16ace462f (patch)
tree47cf29b4b7a0ba3ce321ce628a6b0a6175d978d7 /xmloff
parentcff72ec4bf87c6484be97d954966309ba7a5eb8a (diff)
Don't hold css::uno::Type instances by pointer
...in comphelper::PropertyMapEntry and SfxItemPropertyMapEntry. And as the arrays of such need to be initialized dynamically anyway, also change their name members to proper OUStrings while at it. Plus some const clean-up. Change-Id: I67d4d7b5773fb020605f369daf39528bec930606
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlexp.cxx14
-rw-r--r--xmloff/source/meta/MetaExportComponent.cxx8
2 files changed, 11 insertions, 11 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index b92e7297beb9..c7a29cceb265 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1330,12 +1330,12 @@ sal_uInt32 SvXMLExport::exportDoc( enum ::xmloff::token::XMLTokenEnum eClass )
{
try
{
- ::comphelper::PropertyMapEntry aInfoMap[] =
+ ::comphelper::PropertyMapEntry const aInfoMap[] =
{
- { "Class", sizeof("Class")-1, 0,
- &::getCppuType((OUString*)0),
+ { OUString("Class"), 0,
+ ::getCppuType((OUString*)0),
PropertyAttribute::MAYBEVOID, 0},
- { NULL, 0, 0, NULL, 0, 0 }
+ { OUString(), 0, css::uno::Type(), 0, 0 }
};
Reference< XPropertySet > xConvPropSet(
::comphelper::GenericPropertySet_CreateInstance(
@@ -2158,10 +2158,10 @@ sal_Bool SvXMLExport::ExportEmbeddedOwnObject( Reference< XComponent >& rComp )
if( ! (getExportFlags() & EXPORT_OASIS) &&
bIsChart )
{
- static ::comphelper::PropertyMapEntry aInfoMap[] =
+ static ::comphelper::PropertyMapEntry const aInfoMap[] =
{
- { "ExportTableNumberList", 21, 0, &::getBooleanCppuType(), PropertyAttribute::MAYBEVOID, 0},
- { NULL, 0, 0, NULL, 0, 0 }
+ { OUString("ExportTableNumberList"), 0, ::getBooleanCppuType(), PropertyAttribute::MAYBEVOID, 0},
+ { OUString(), 0, css::uno::Type(), 0, 0 }
};
Reference< XPropertySet > xInfoProp(
::comphelper::GenericPropertySet_CreateInstance(
diff --git a/xmloff/source/meta/MetaExportComponent.cxx b/xmloff/source/meta/MetaExportComponent.cxx
index 4a2d63ca0cda..4595f7008cac 100644
--- a/xmloff/source/meta/MetaExportComponent.cxx
+++ b/xmloff/source/meta/MetaExportComponent.cxx
@@ -78,12 +78,12 @@ sal_uInt32 XMLMetaExportComponent::exportDoc( enum XMLTokenEnum )
uno::Reference< uno::XComponentContext > xContext = getComponentContext();
try
{
- ::comphelper::PropertyMapEntry aInfoMap[] =
+ ::comphelper::PropertyMapEntry const aInfoMap[] =
{
- { "Class", sizeof("Class")-1, 0,
- &::getCppuType((OUString*)0),
+ { OUString("Class"), 0,
+ ::getCppuType((OUString*)0),
beans::PropertyAttribute::MAYBEVOID, 0},
- { NULL, 0, 0, NULL, 0, 0 }
+ { OUString(), 0, css::uno::Type(), 0, 0 }
};
uno::Reference< beans::XPropertySet > xConvPropSet(
::comphelper::GenericPropertySet_CreateInstance(