diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-09-17 10:59:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-17 12:08:16 +0200 |
commit | d727476cff29382a34103b137542e15e1aeeb4b9 (patch) | |
tree | 752705fab46f272e0d7cf9c8386f0e39cd3ba8be /sw/source/uibase/inc/unodispatch.hxx | |
parent | 29bd193146b40cf90bda5db04b136987f3c7c94d (diff) |
Replace list by vector unodispatch (sw)
There was insert use equivalent to a push front (since we inserted at the beginning)
but anyway, there wasn't any front or remove which may have justified to keep list
+ modernize loop
Change-Id: Ic67db40ae2c71dd0eb526e6c5ca55f1ef6d202c9
Reviewed-on: https://gerrit.libreoffice.org/42368
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/inc/unodispatch.hxx')
-rw-r--r-- | sw/source/uibase/inc/unodispatch.hxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/uibase/inc/unodispatch.hxx b/sw/source/uibase/inc/unodispatch.hxx index 320bbf775d61..448b8e379dd9 100644 --- a/sw/source/uibase/inc/unodispatch.hxx +++ b/sw/source/uibase/inc/unodispatch.hxx @@ -26,7 +26,7 @@ #include <com/sun/star/frame/XDispatch.hpp> #include <com/sun/star/frame/XInterceptorInfo.hpp> #include <cppuhelper/implbase.hxx> -#include <list> +#include <vector> #include <vcl/svapp.hxx> #include <osl/mutex.hxx> @@ -96,7 +96,6 @@ struct StatusStruct_Impl css::uno::Reference< css::frame::XStatusListener> xListener; css::util::URL aURL; }; -typedef std::list< StatusStruct_Impl > StatusListenerList; class SwXDispatch : public cppu::WeakImplHelper < css::frame::XDispatch, @@ -104,7 +103,7 @@ class SwXDispatch : public cppu::WeakImplHelper > { SwView* m_pView; - StatusListenerList m_aListenerList; + std::vector< StatusStruct_Impl > m_aStatusListenerVector; bool m_bOldEnable; bool m_bListenerAdded; public: |