diff options
Diffstat (limited to 'idl/source/objects/types.cxx')
-rw-r--r-- | idl/source/objects/types.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index cd4179559281..73bef4f5f3af 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -270,7 +270,7 @@ SvMetaType::~SvMetaType() { SvMetaAttributeMemberList & SvMetaType::GetAttrList() const { if( !pAttrList ) - ((SvMetaType *)this)->pAttrList = new SvMetaAttributeMemberList(); + const_cast<SvMetaType *>(this)->pAttrList = new SvMetaAttributeMemberList(); return *pAttrList; } @@ -293,7 +293,7 @@ SvMetaType * SvMetaType::GetBaseType() const { if( GetRef() && GetType() == TYPE_BASE ) return static_cast<SvMetaType *>(GetRef())->GetBaseType(); - return (SvMetaType *)this; + return const_cast<SvMetaType *>(this); } SvMetaType * SvMetaType::GetReturnType() const |