summaryrefslogtreecommitdiff
path: root/cui/source/dialogs/cuigaldlg.cxx
diff options
context:
space:
mode:
authorJean-Noël Rouvignac <jn.rouvignac@gmail.com>2013-02-08 09:06:10 +0100
committerTor Lillqvist <tml@iki.fi>2013-02-08 14:57:16 +0000
commit9e310cc32923ceb4b18d97ce68d54a339b935f01 (patch)
treed79b44b80c15f6bdb3116db4c9b6955a9e6cb4c9 /cui/source/dialogs/cuigaldlg.cxx
parent9c427991d9658a870ee0eb1bdc4cd3b393c93fd5 (diff)
fdo#38838 Some removal/replacement of the String/UniString with OUString
Change-Id: I6daea312198fae3a9717bd8d4fea6371aa4cd275 Reviewed-on: https://gerrit.libreoffice.org/1962 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'cui/source/dialogs/cuigaldlg.cxx')
-rw-r--r--cui/source/dialogs/cuigaldlg.cxx20
1 files changed, 6 insertions, 14 deletions
diff --git a/cui/source/dialogs/cuigaldlg.cxx b/cui/source/dialogs/cuigaldlg.cxx
index a683467eef6f..f7ed15fb5470 100644
--- a/cui/source/dialogs/cuigaldlg.cxx
+++ b/cui/source/dialogs/cuigaldlg.cxx
@@ -179,7 +179,7 @@ void SearchThread::ImplSearch( const INetURLObject& rStartURL,
SolarMutexGuard aGuard;
mpBrowser->aFoundList.push_back(
- new String( aFoundURL.GetMainURL( INetURLObject::NO_DECODE ) )
+ aFoundURL.GetMainURL( INetURLObject::NO_DECODE )
);
mpBrowser->aLbxFound.InsertEntry(
GetReducedString( aFoundURL, 50 ),
@@ -309,9 +309,9 @@ void TakeThread::execute()
for( sal_uInt16 i = 0; i < nEntries && schedule(); i++ )
{
if( mpBrowser->bTakeAll )
- aURL = INetURLObject( *mpBrowser->aFoundList[ nPos = i ] );
+ aURL = INetURLObject( mpBrowser->aFoundList[ nPos = i ] );
else
- aURL = INetURLObject(*mpBrowser->aFoundList[ nPos = mpBrowser->aLbxFound.GetSelectEntryPos( i ) ]);
+ aURL = INetURLObject( mpBrowser->aFoundList[ nPos = mpBrowser->aLbxFound.GetSelectEntryPos( i ) ]);
mrTakenList.push_back( (sal_uLong)nPos );
@@ -390,14 +390,12 @@ IMPL_LINK_NOARG(TakeProgress, CleanUpHdl)
// refill found list
for( i = 0, nCount = aRemoveEntries.size(); i < nCount; ++i )
if( !aRemoveEntries[ i ] )
- aRemainingVector.push_back( *mpBrowser->aFoundList[ i ] );
+ aRemainingVector.push_back( mpBrowser->aFoundList[i] );
- for ( i = 0, nCount = mpBrowser->aFoundList.size(); i < nCount; ++i )
- delete mpBrowser->aFoundList[ i ];
mpBrowser->aFoundList.clear();
for( i = 0, nCount = aRemainingVector.size(); i < nCount; ++i )
- mpBrowser->aFoundList.push_back( new String( aRemainingVector[ i ] ) );
+ mpBrowser->aFoundList.push_back( aRemainingVector[ i ] );
aRemainingVector.clear();
@@ -812,9 +810,6 @@ TPGalleryThemeProperties::~TPGalleryThemeProperties()
xMediaPlayer.clear();
xDialogListener.clear();
- for ( size_t i = 0, n = aFoundList.size(); i < n; ++i )
- delete aFoundList[ i ];
-
for ( size_t i = 0, n = aFilterEntryList.size(); i < n; ++i ) {
delete aFilterEntryList[ i ];
}
@@ -1011,10 +1006,7 @@ void TPGalleryThemeProperties::SearchFiles()
{
SearchProgress* pProgress = new SearchProgress( this, aURL );
- for ( size_t i = 0, n = aFoundList.size(); i < n; ++i )
- delete aFoundList[ i ];
aFoundList.clear();
-
aLbxFound.Clear();
pProgress->SetFileType( aCbbFileType.GetText() );
@@ -1110,7 +1102,7 @@ void TPGalleryThemeProperties::DoPreview()
if( aString != aPreviewString )
{
- INetURLObject _aURL( *aFoundList[ aLbxFound.GetEntryPos( aString ) ] );
+ INetURLObject _aURL( aFoundList[ aLbxFound.GetEntryPos( aString ) ] );
bInputAllowed = sal_False;
if ( !aWndPreview.SetGraphic( _aURL ) )