summaryrefslogtreecommitdiff
path: root/svl/source/items/globalnameitem.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:28 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:28 +0200
commit58f60b5108c584aa44f353f2fcbd07b81d474e48 (patch)
tree116406e44da2b874263e5e25ac558e5b2ce54b6f /svl/source/items/globalnameitem.cxx
parentfa0149a4b8a7772c313bb9d136364082545538a9 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I1666375abb72566e71804ac82b22d3a5ea590b78
Diffstat (limited to 'svl/source/items/globalnameitem.cxx')
-rw-r--r--svl/source/items/globalnameitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/items/globalnameitem.cxx b/svl/source/items/globalnameitem.cxx
index 6e1f5ff8a043..1c02c1d4933b 100644
--- a/svl/source/items/globalnameitem.cxx
+++ b/svl/source/items/globalnameitem.cxx
@@ -80,7 +80,7 @@ bool SfxGlobalNameItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt
aNew >>= aSeq;
if ( aSeq.getLength() == 16 )
{
- m_aName.MakeFromMemory( (void*) aSeq.getConstArray() );
+ m_aName.MakeFromMemory( const_cast<sal_Int8 *>(aSeq.getConstArray()) );
return true;
}
@@ -92,7 +92,7 @@ bool SfxGlobalNameItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt
bool SfxGlobalNameItem::QueryValue( com::sun::star::uno::Any& rVal, sal_uInt8 ) const
{
com::sun::star::uno::Sequence< sal_Int8 > aSeq( 16 );
- void* pData = ( void* ) &m_aName.GetCLSID();
+ void const * pData = &m_aName.GetCLSID();
memcpy( aSeq.getArray(), pData, 16 );
rVal <<= aSeq;
return true;