diff options
author | Noel Grandin <noel@peralex.com> | 2012-04-26 14:04:59 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-05-09 08:53:00 +0200 |
commit | b9d7b38ff260b227a70b8298c8c4956d48b8fa11 (patch) | |
tree | b9ffd7370bcf9c2d1d2088b25e9d0c1f596aa229 /sw/source/core/text/noteurl.cxx | |
parent | 47c8927f37a682578861a22d8b40013c20544054 (diff) |
Convert SV_DECL_PTRARR_DEL(SwURLNoteList) to boost::ptr_vector
Diffstat (limited to 'sw/source/core/text/noteurl.cxx')
-rw-r--r-- | sw/source/core/text/noteurl.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/core/text/noteurl.cxx b/sw/source/core/text/noteurl.cxx index 8a08e09e30b9..12d1ea0c7a0a 100644 --- a/sw/source/core/text/noteurl.cxx +++ b/sw/source/core/text/noteurl.cxx @@ -40,21 +40,19 @@ // Global variable SwNoteURL *pNoteURL = NULL; -SV_IMPL_PTRARR( SwURLNoteList, SwURLNotePtr ) - void SwNoteURL::InsertURLNote( const XubString& rURL, const XubString& rTarget, const SwRect& rRect ) { MSHORT i; - MSHORT nCount = aList.Count(); + MSHORT nCount = aList.size(); for( i = 0; i < nCount; i++ ) - if( rRect == aList.GetObject(i)->GetRect() ) + if( rRect == aList[i].GetRect() ) break; if( i == nCount ) { SwURLNote *pNew = new SwURLNote( rURL, rTarget, rRect ); - aList.Insert( pNew, nCount ); + aList.push_back( pNew ); } } |