summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/inc/editsh.hxx4
-rw-r--r--sw/source/core/edit/editsh.cxx3
2 files changed, 3 insertions, 4 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index 98ed2dcb975a..cf9740c02a20 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -36,11 +36,11 @@
#include <frmfmt.hxx>
#include <charfmt.hxx>
+#include <memory>
#include <vector>
#include <set>
#include <swundo.hxx>
#include <svtools/embedhlp.hxx>
-#include <boost/ptr_container/ptr_vector.hpp>
namespace tools { class PolyPolygon; }
class SwDoc;
@@ -125,7 +125,7 @@ struct SwGetINetAttr
: sText( rText ), rINetAttr( rAttr )
{}
};
-typedef boost::ptr_vector<SwGetINetAttr> SwGetINetAttrs;
+typedef std::vector<SwGetINetAttr> SwGetINetAttrs;
// Types of forms of content.
#define CNT_TXT 0x0001
diff --git a/sw/source/core/edit/editsh.cxx b/sw/source/core/edit/editsh.cxx
index 8950e62a78d1..7e269332b600 100644
--- a/sw/source/core/edit/editsh.cxx
+++ b/sw/source/core/edit/editsh.cxx
@@ -682,8 +682,7 @@ void SwEditShell::GetINetAttrs( SwGetINetAttrs& rArr )
if( !sText.isEmpty() )
{
- SwGetINetAttr* pNew = new SwGetINetAttr( sText, rAttr );
- rArr.push_back( pNew );
+ rArr.push_back(SwGetINetAttr(sText, rAttr));
}
}
}