summaryrefslogtreecommitdiff
path: root/sfx2/source/appl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-01-08 14:23:04 +0200
committerNoel Grandin <noel@peralex.com>2014-01-09 10:59:58 +0200
commitf85b2f676dabd388254fb411d497e36ccecd2ddb (patch)
tree74e4454c6395277200373a35e916667d509a351e /sfx2/source/appl
parent1d272d663cf33a9e16dd70f1b4f77778863ec763 (diff)
remove unnecessary casts when calling Combobox::SetEntryData
An OUString* is type compatibile with void*. Change-Id: I6f01fe02c75f4db0bda09c7e288cb88d1fbf3c37
Diffstat (limited to 'sfx2/source/appl')
-rw-r--r--sfx2/source/appl/newhelp.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/appl/newhelp.cxx b/sfx2/source/appl/newhelp.cxx
index 8bd2f5ff9a3e..77e7362b05ac 100644
--- a/sfx2/source/appl/newhelp.cxx
+++ b/sfx2/source/appl/newhelp.cxx
@@ -1076,7 +1076,7 @@ IMPL_LINK_NOARG(SearchTabPage_Impl, SearchHdl)
nIdx = 0;
OUString* pURL = new OUString( rRow.getToken( 2, '\t', nIdx ) );
sal_uInt16 nPos = aResultsLB.InsertEntry( aTitle );
- aResultsLB.SetEntryData( nPos, (void*)(sal_uIntPtr)pURL );
+ aResultsLB.SetEntryData( nPos, pURL );
}
LeaveWait();
@@ -1279,7 +1279,7 @@ void BookmarksBox_Impl::DoAction( sal_uInt16 nAction )
OUString aImageURL = IMAGE_URL;
aImageURL += INetURLObject( *pURL ).GetHost();
nPos = InsertEntry( aDlg.GetTitle(), SvFileInformationManager::GetImage( INetURLObject(aImageURL), false ) );
- SetEntryData( nPos, (void*)(sal_uIntPtr)( new OUString( *pURL ) ) );
+ SetEntryData( nPos, new OUString( *pURL ) );
SelectEntryPos( nPos );
delete pURL;
}
@@ -1452,7 +1452,7 @@ void BookmarksTabPage_Impl::AddBookmarks( const OUString& rTitle, const OUString
OUString aImageURL = IMAGE_URL;
aImageURL += INetURLObject( rURL ).GetHost();
sal_uInt16 nPos = aBookmarksBox.InsertEntry( rTitle, SvFileInformationManager::GetImage( INetURLObject(aImageURL), false ) );
- aBookmarksBox.SetEntryData( nPos, (void*)(sal_uIntPtr)( new OUString( rURL ) ) );
+ aBookmarksBox.SetEntryData( nPos, new OUString( rURL ) );
}
OUString SfxHelpWindow_Impl::buildHelpURL(const OUString& sFactory ,
@@ -1593,7 +1593,7 @@ void SfxHelpIndexWindow_Impl::Initialize()
OUString aURL = rRow.getToken( 2, '\t', nIdx );
OUString* pFactory = new OUString( INetURLObject( aURL ).GetHost() );
sal_uInt16 nPos = aActiveLB.InsertEntry( aTitle );
- aActiveLB.SetEntryData( nPos, (void*)(sal_uIntPtr)pFactory );
+ aActiveLB.SetEntryData( nPos, pFactory );
}
aActiveLB.SetDropDownLineCount( (sal_uInt16)aFactories.size() );