diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewimp.hxx | 4 | ||||
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 18 |
2 files changed, 3 insertions, 19 deletions
diff --git a/sfx2/source/view/viewimp.hxx b/sfx2/source/view/viewimp.hxx index 976869ac237e..6752ebaf788e 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 107a27ba6899..30efcb52b6b8 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) |