diff options
author | Martin Gallwey <mtg@openoffice.org> | 2001-11-27 17:40:24 +0000 |
---|---|---|
committer | Martin Gallwey <mtg@openoffice.org> | 2001-11-27 17:40:24 +0000 |
commit | f030796a3795688b66f720ccea49bf7046b147b3 (patch) | |
tree | 0b23976546ccef48a5a1e83696534f8050fc4894 /comphelper | |
parent | cbf8e7f2c9091bfee7fa48f8068ccc222f3be6d1 (diff) |
#95145# set type correctly for properties in a MasterPropertySet
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/property/MasterPropertySetInfo.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/comphelper/source/property/MasterPropertySetInfo.cxx b/comphelper/source/property/MasterPropertySetInfo.cxx index d3d8253b2ffa..db4a2ef29783 100644 --- a/comphelper/source/property/MasterPropertySetInfo.cxx +++ b/comphelper/source/property/MasterPropertySetInfo.cxx @@ -2,9 +2,9 @@ * * $RCSfile: MasterPropertySetInfo.cxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mtg $ $Date: 2001-07-24 20:37:41 $ + * last change: $Author: mtg $ $Date: 2001-11-27 18:40:24 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -191,8 +191,9 @@ Sequence< ::Property > SAL_CALL MasterPropertySetInfo::getProperties() pProperties->Name = OUString( pInfo->mpName, pInfo->mnNameLen, RTL_TEXTENCODING_ASCII_US ); pProperties->Handle = pInfo->mnHandle; - const Type* pType = &pProperties->Type; + const Type* pType; GenerateCppuType ( pInfo->meCppuType, pType); + pProperties->Type = *pType; pProperties->Attributes = pInfo->mnAttributes; } } @@ -211,8 +212,10 @@ Property SAL_CALL MasterPropertySetInfo::getPropertyByName( const ::rtl::OUStrin Property aProperty; aProperty.Name = OUString( pInfo->mpName, pInfo->mnNameLen, RTL_TEXTENCODING_ASCII_US ); aProperty.Handle = pInfo->mnHandle; - const Type* pType = &aProperty.Type; + const Type* pType; GenerateCppuType ( pInfo->meCppuType, pType ); + aProperty.Type = *pType; + aProperty.Attributes = pInfo->mnAttributes; return aProperty; } |