sfx2: SfxInPlaceClientList is just a std::vector
Change-Id: I6b676d17d9592a0ca998cdafb25b1aa12e11b6d6
Reviewed-on: https://gerrit.libreoffice.org/44384
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
diff --git a/sfx2/source/view/viewimp.hxx b/sfx2/source/view/viewimp.hxx
index 976869a..6752eba 100644
--- a/sfx2/source/view/viewimp.hxx
+++ b/sfx2/source/view/viewimp.hxx
@@ -31,13 +31,15 @@
#include <rtl/ref.hxx>
#include <vcl/print.hxx>
#include <queue>
#include <vector>
class SfxBaseController;
typedef std::vector<SfxShell*> SfxShellArr_Impl;
class SfxClipboardChangeListener;
class SfxInPlaceClientList;
using SfxInPlaceClientList = std::vector<SfxInPlaceClient*>;
struct SfxViewShell_Impl
{
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index 107a27b..30efcb5 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -207,24 +207,6 @@ void SAL_CALL SfxClipboardChangeListener::changedContents( const datatransfer::c
Application::PostUserEvent( LINK( nullptr, SfxClipboardChangeListener, AsyncExecuteHdl_Impl ), pInfo );
}
class SfxInPlaceClientList
{
typedef std::vector<SfxInPlaceClient*> DataType;
DataType maData;
public:
typedef DataType::iterator iterator;
SfxInPlaceClient* at( size_t i ) { return maData.at(i); }
iterator begin() { return maData.begin(); }
iterator end() { return maData.end(); }
void push_back( SfxInPlaceClient* p ) { maData.push_back(p); }
void erase( const iterator& it ) { maData.erase(it); }
size_t size() const { return maData.size(); }
};
sal_uInt32 SfxViewShell_Impl::m_nLastViewShellId = 0;
SfxViewShell_Impl::SfxViewShell_Impl(SfxViewShellFlags const nFlags)