Kaydet (Commit) 21680809 authored tarafından Takeshi Abe's avatar Takeshi Abe Kaydeden (comit) Noel Grandin

sfx2: SfxInPlaceClientList is just a std::vector

Change-Id: I6b676d17d9592a0ca998cdafb25b1aa12e11b6d6
Reviewed-on: https://gerrit.libreoffice.org/44384Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 9610bab0
...@@ -31,13 +31,15 @@ ...@@ -31,13 +31,15 @@
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
#include <vcl/print.hxx> #include <vcl/print.hxx>
#include <queue> #include <queue>
#include <vector>
class SfxBaseController; class SfxBaseController;
typedef std::vector<SfxShell*> SfxShellArr_Impl; typedef std::vector<SfxShell*> SfxShellArr_Impl;
class SfxClipboardChangeListener; class SfxClipboardChangeListener;
class SfxInPlaceClientList;
using SfxInPlaceClientList = std::vector<SfxInPlaceClient*>;
struct SfxViewShell_Impl struct SfxViewShell_Impl
{ {
......
...@@ -207,24 +207,6 @@ void SAL_CALL SfxClipboardChangeListener::changedContents( const datatransfer::c ...@@ -207,24 +207,6 @@ void SAL_CALL SfxClipboardChangeListener::changedContents( const datatransfer::c
Application::PostUserEvent( LINK( nullptr, SfxClipboardChangeListener, AsyncExecuteHdl_Impl ), pInfo ); 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; sal_uInt32 SfxViewShell_Impl::m_nLastViewShellId = 0;
SfxViewShell_Impl::SfxViewShell_Impl(SfxViewShellFlags const nFlags) SfxViewShell_Impl::SfxViewShell_Impl(SfxViewShellFlags const nFlags)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment