summaryrefslogtreecommitdiff
path: root/include/comphelper/propertysetinfo.hxx
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 /include/comphelper/propertysetinfo.hxx
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 'include/comphelper/propertysetinfo.hxx')
-rw-r--r--include/comphelper/propertysetinfo.hxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/comphelper/propertysetinfo.hxx b/include/comphelper/propertysetinfo.hxx
index 34b12e109b1a..71863b08c7e7 100644
--- a/include/comphelper/propertysetinfo.hxx
+++ b/include/comphelper/propertysetinfo.hxx
@@ -39,15 +39,14 @@ namespace comphelper
struct PropertyMapEntry
{
- const sal_Char* mpName;
- sal_uInt16 mnNameLen;
+ OUString maName;
sal_Int32 mnHandle;
- const com::sun::star::uno::Type* mpType;
+ com::sun::star::uno::Type maType;
sal_Int16 mnAttributes;
sal_uInt8 mnMemberId;
};
-typedef std::map<OUString, PropertyMapEntry*> PropertyMap;
+typedef std::map<OUString, PropertyMapEntry const *> PropertyMap;
class PropertyMapImpl;
@@ -60,7 +59,7 @@ private:
PropertyMapImpl* mpMap;
public:
PropertySetInfo() throw();
- PropertySetInfo( PropertyMapEntry* pMap ) throw();
+ PropertySetInfo( PropertyMapEntry const * pMap ) throw();
virtual ~PropertySetInfo() throw();
/** returns a stl map with all PropertyMapEntry pointer.<p>
@@ -71,7 +70,7 @@ public:
/** adds an array of PropertyMapEntry to this instance.<p>
The end is marked with a PropertyMapEntry where mpName equals NULL</p>
*/
- void add( PropertyMapEntry* pMap ) throw();
+ void add( PropertyMapEntry const * pMap ) throw();
/** removes an already added PropertyMapEntry which string in mpName equals to aName */
void remove( const OUString& aName ) throw();