From b4824c891590ba78d084f155457d1246abfc638c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 27 Aug 2013 10:07:54 +0200 Subject: convert includes/sfx2/frame.hxx from String to OUString Change-Id: Ia69548250beb2896cab8c19fe2e635fdc9162f4d --- svx/source/dialog/imapdlg.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'svx/source/dialog/imapdlg.cxx') diff --git a/svx/source/dialog/imapdlg.cxx b/svx/source/dialog/imapdlg.cxx index 762acd83e45b..6ab22072fae6 100644 --- a/svx/source/dialog/imapdlg.cxx +++ b/svx/source/dialog/imapdlg.cxx @@ -284,7 +284,7 @@ void SvxIMapDlg::SetTargetList( const TargetList& rTargetList ) maCbbTarget.Clear(); for ( size_t i = 0, n = aNewList.size(); i < n; ++i ) - maCbbTarget.InsertEntry( *aNewList[ i ] ); + maCbbTarget.InsertEntry( aNewList[ i ] ); } void SvxIMapDlg::Update( const Graphic& rGraphic, const ImageMap* pImageMap, @@ -301,8 +301,6 @@ void SvxIMapDlg::Update( const Graphic& rGraphic, const ImageMap* pImageMap, // Delete UpdateTargetList, because this method can still be called several // times before the update timer is turned on - for ( size_t i = 0, n = pOwnData->aUpdateTargetList.size(); i < n; ++i ) - delete pOwnData->aUpdateTargetList[ i ]; pOwnData->aUpdateTargetList.clear(); // TargetList must be copied, since it is owned by the caller and can be @@ -313,7 +311,7 @@ void SvxIMapDlg::Update( const Graphic& rGraphic, const ImageMap* pImageMap, TargetList aTargetList( *pTargetList ); for ( size_t i = 0, n = aTargetList.size(); i < n; ++i ) - pOwnData->aUpdateTargetList.push_back( new String( *aTargetList[ i ] ) ); + pOwnData->aUpdateTargetList.push_back( aTargetList[ i ] ); } pOwnData->aTimer.Start(); @@ -746,8 +744,6 @@ IMPL_LINK_NOARG(SvxIMapDlg, UpdateHdl) } // Delete the copied list again in the Update method - for ( size_t i = 0, n = pOwnData->aUpdateTargetList.size(); i < n; ++i ) - delete pOwnData->aUpdateTargetList[ i ]; pOwnData->aUpdateTargetList.clear(); GetBindings().Invalidate( SID_IMAP_EXEC ); -- cgit