summaryrefslogtreecommitdiff
path: root/svl/source/items/globalnameitem.cxx
diff options
context:
space:
mode:
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;