diff options
author | Noel Grandin <noel@peralex.com> | 2014-01-08 14:23:04 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-01-09 10:59:58 +0200 |
commit | f85b2f676dabd388254fb411d497e36ccecd2ddb (patch) | |
tree | 74e4454c6395277200373a35e916667d509a351e /cui | |
parent | 1d272d663cf33a9e16dd70f1b4f77778863ec763 (diff) |
remove unnecessary casts when calling Combobox::SetEntryData
An OUString* is type compatibile with void*.
Change-Id: I6f01fe02c75f4db0bda09c7e288cb88d1fbf3c37
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/multifil.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/multipat.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/multifil.cxx b/cui/source/dialogs/multifil.cxx index 3a29b8784a63..0eca236620c3 100644 --- a/cui/source/dialogs/multifil.cxx +++ b/cui/source/dialogs/multifil.cxx @@ -117,7 +117,7 @@ IMPL_LINK( SvxMultiFileDialog, AddHdl_Impl, PushButton *, pBtn ) else { sal_uInt16 nPos = aPathLB.InsertEntry( sInsFile, LISTBOX_APPEND ); - aPathLB.SetEntryData( nPos, (void*) new OUString( sInsFile ) ); + aPathLB.SetEntryData( nPos, new OUString( sInsFile ) ); } } // end of if ( aDlg.Execute() == ERRCODE_NONE ) diff --git a/cui/source/dialogs/multipat.cxx b/cui/source/dialogs/multipat.cxx index fc24c308edff..1fa83cb323d4 100644 --- a/cui/source/dialogs/multipat.cxx +++ b/cui/source/dialogs/multipat.cxx @@ -120,7 +120,7 @@ IMPL_LINK_NOARG(SvxMultiPathDialog, AddHdl_Impl) else { sal_uInt16 nPos = aPathLB.InsertEntry( sInsPath, LISTBOX_APPEND ); - aPathLB.SetEntryData( nPos, (void*)new OUString( aURL ) ); + aPathLB.SetEntryData( nPos, new OUString( aURL ) ); } } SelectHdl_Impl( NULL ); @@ -296,7 +296,7 @@ void SvxMultiPathDialog::SetPath( const OUString& rPath ) nPos = aPathLB.InsertEntry( sSystemPath, LISTBOX_APPEND ); else nPos = aPathLB.InsertEntry( sPath, LISTBOX_APPEND ); - aPathLB.SetEntryData( nPos, (void*)new OUString( sPath ) ); + aPathLB.SetEntryData( nPos, new OUString( sPath ) ); } } |