Use reinterpret_cast in inlines for SSecureId and SVendorId - Bug 3036 GCC_SURGE
authorWilliam Roberts <williamr@symbian.org>
Sat, 19 Jun 2010 09:54:56 +0100
branchGCC_SURGE
changeset 168 c46cf809d044
parent 167 b41fc9c39ca7
child 169 15b70309d843
Use reinterpret_cast in inlines for SSecureId and SVendorId - Bug 3036
kernel/eka/include/e32cmn.inl
--- a/kernel/eka/include/e32cmn.inl	Sat Jun 19 07:49:33 2010 +0100
+++ b/kernel/eka/include/e32cmn.inl	Sat Jun 19 09:54:56 2010 +0100
@@ -6977,7 +6977,7 @@
 inline const TSecureId* SSecureId::operator&() const
 	{ return (const TSecureId*)this; }
 inline SSecureId::operator const TSecureId&() const
-	{ /* coverity[return_local_addr] */ return (const TSecureId&)iId; }
+	{ return reinterpret_cast<const TSecureId&>(iId); }
 inline SSecureId::operator TUint32() const
 	{ return iId; }
 inline SSecureId::operator TUid() const
@@ -7017,7 +7017,7 @@
 inline const TVendorId* SVendorId::operator&() const
 	{ return (const TVendorId*)this; }
 inline SVendorId::operator const TVendorId&() const
-	{ /* coverity[return_local_addr] */ return (const TVendorId&)iId; }
+	{ return reinterpret_cast<const TVendorId&>(iId); }
 inline SVendorId::operator TUint32() const
 	{ return iId; }
 inline SVendorId::operator TUid() const