diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-08 11:41:46 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-08 14:00:38 +0200 |
commit | 04e22bee0a79008a39dc9d78a460941f738020a6 (patch) | |
tree | 8a9f1b1bcb646049925e2772ff16c32ef42b28b9 /idl/source/objects/types.cxx | |
parent | 81c82cabe53101b828c56af71c5bd49b9ca60a21 (diff) |
format IDL compiler headers a little
Change-Id: I54cb7a664908f8817958d4482a5adfdc6d2a0f3d
Diffstat (limited to 'idl/source/objects/types.cxx')
-rw-r--r-- | idl/source/objects/types.cxx | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index 42deae19d378..07f7260790cf 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -150,8 +150,7 @@ void SvMetaAttribute::Insert (SvSlotElementList&, const OString&, SvIdlDataBase& } #define CTOR \ - : pAttrList( nullptr ) \ - , nType( MetaTypeType::Base ) \ + : nType( MetaTypeType::Base ) \ , bIsItem( false ) \ , bIsShell( false ) \ @@ -166,23 +165,15 @@ SvMetaType::SvMetaType( const OString& rName ) SetName( rName ); } -SvMetaType::~SvMetaType() { - delete pAttrList; -} - -SvRefMemberList<SvMetaAttribute *>& SvMetaType::GetAttrList() const -{ - if( !pAttrList ) - const_cast<SvMetaType *>(this)->pAttrList = new SvRefMemberList<SvMetaAttribute *>(); - return *pAttrList; -} +SvMetaType::~SvMetaType() +{} void SvMetaType::SetType( MetaTypeType nT ) { nType = nT; if( nType == MetaTypeType::Class ) { - OStringBuffer aTmp(C_PREF); + OStringBuffer aTmp("C_"); aTmp.append("Object *"); } } @@ -287,7 +278,7 @@ sal_uLong SvMetaType::MakeSfx( OStringBuffer& rAttrArray ) // write the single attributes for( sal_uLong n = 0; n < nAttrCount; n++ ) { - nC += (*pAttrList)[n]->MakeSfx( rAttrArray ); + nC += aAttrList[n]->MakeSfx( rAttrArray ); if( n +1 < nAttrCount ) rAttrArray.append(", "); } |