diff options
author | Noel Grandin <noel@peralex.com> | 2013-08-27 10:07:54 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-08-29 09:30:07 +0200 |
commit | b4824c891590ba78d084f155457d1246abfc638c (patch) | |
tree | 443dcde3bf95837bcf7228282b26b5cb5f1ed550 /svx/source/dialog/imapdlg.cxx | |
parent | aca6fd651270227b44e3e67d6517b79bafb6229b (diff) |
convert includes/sfx2/frame.hxx from String to OUString
Change-Id: Ia69548250beb2896cab8c19fe2e635fdc9162f4d
Diffstat (limited to 'svx/source/dialog/imapdlg.cxx')
-rw-r--r-- | svx/source/dialog/imapdlg.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
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 ); |