From 07ab0d43b58cf7ee16c36016d6b9b70c0ebbb9b1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 5 Dec 2013 23:42:23 +0100 Subject: Get rid of DECLARE_STL_VECTOR Change-Id: If4588034fc09e4663b5217669c71f26c0a3b8c8a --- forms/source/component/DatabaseForm.cxx | 4 ++-- forms/source/component/DatabaseForm.hxx | 7 +++++-- forms/source/component/EventThread.hxx | 11 +++++++---- forms/source/component/GroupManager.cxx | 2 +- forms/source/component/GroupManager.hxx | 8 ++++---- forms/source/inc/property.hxx | 7 +++++-- forms/source/misc/property.cxx | 2 +- 7 files changed, 25 insertions(+), 16 deletions(-) (limited to 'forms') diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 724def0244bb..e72848531f9d 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -496,7 +496,7 @@ OUString ODatabaseForm::GetDataEncoded(bool _bURLEncoded,const Reference ODatabaseForm::GetDataMultiPartEncoded(const Reference + +#include + #include "propertybaghelper.hxx" #include #include @@ -111,8 +115,7 @@ public: } }; - -DECLARE_STL_VECTOR(HtmlSuccessfulObj, HtmlSuccessfulObjList); +typedef std::vector HtmlSuccessfulObjList; //======================================================================== class OGroupManager; diff --git a/forms/source/component/EventThread.hxx b/forms/source/component/EventThread.hxx index 0d34521a8a6b..b17c47ca55f1 100644 --- a/forms/source/component/EventThread.hxx +++ b/forms/source/component/EventThread.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_FORMS_SOURCE_COMPONENT_EVENTTHREAD_HXX #define INCLUDED_FORMS_SOURCE_COMPONENT_EVENTTHREAD_HXX +#include + +#include + #include #include #include @@ -29,7 +33,6 @@ #include #include -#include #include using namespace comphelper; @@ -47,9 +50,9 @@ class OComponentEventThread ,public ::com::sun::star::lang::XEventListener ,public ::cppu::OWeakObject { - DECLARE_STL_VECTOR(::com::sun::star::lang::EventObject*, ThreadEvents); - DECLARE_STL_VECTOR(::com::sun::star::uno::Reference< ::com::sun::star::uno::XAdapter> , ThreadObjects); - DECLARE_STL_VECTOR(sal_Bool, ThreadBools); + typedef std::vector ThreadEvents; + typedef std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::uno::XAdapter> > ThreadObjects; + typedef std::vector ThreadBools; ::osl::Mutex m_aMutex; ::osl::Condition m_aCond; // Queue filled? diff --git a/forms/source/component/GroupManager.cxx b/forms/source/component/GroupManager.cxx index 926c0cf34e79..19b6abb1640c 100644 --- a/forms/source/component/GroupManager.cxx +++ b/forms/source/component/GroupManager.cxx @@ -246,7 +246,7 @@ Sequence< Reference > OGroup::GetControlModels() const Sequence > aControlModelSeq( nLen ); Reference* pModels = aControlModelSeq.getArray(); - ConstOGroupCompArrIterator aGroupComps = m_aCompArray.begin(); + OGroupCompArr::const_iterator aGroupComps = m_aCompArray.begin(); for (sal_Int32 i = 0; i < nLen; ++i, ++pModels, ++aGroupComps) { *pModels = aGroupComps->GetControlModel(); diff --git a/forms/source/component/GroupManager.hxx b/forms/source/component/GroupManager.hxx index 05f0936c2c69..c0b40094f98e 100644 --- a/forms/source/component/GroupManager.hxx +++ b/forms/source/component/GroupManager.hxx @@ -27,11 +27,11 @@ #include #include #include -#include #include #include #include +#include using namespace comphelper; @@ -120,7 +120,7 @@ public: OUString GetName() const { return m_aName; } }; -DECLARE_STL_VECTOR(OGroupComp, OGroupCompArr); +typedef std::vector OGroupCompArr; //======================================================================== class OGroupComp; @@ -141,7 +141,7 @@ public: const OGroupComp& GetGroupComponent() const { return m_aGroupComp; } }; -DECLARE_STL_VECTOR(OGroupCompAcc, OGroupCompAccArr); +typedef std::vector OGroupCompAccArr; //======================================================================== class OGroup @@ -174,7 +174,7 @@ public: }; typedef std::map OGroupArr; -DECLARE_STL_VECTOR(OGroupArr::iterator, OActiveGroups); +typedef std::vector OActiveGroups; //======================================================================== class OGroupManager : public ::cppu::WeakImplHelper2< ::com::sun::star::beans::XPropertyChangeListener, ::com::sun::star::container::XContainerListener> diff --git a/forms/source/inc/property.hxx b/forms/source/inc/property.hxx index 8bf420c4d3d0..93e62e0d7714 100644 --- a/forms/source/inc/property.hxx +++ b/forms/source/inc/property.hxx @@ -20,6 +20,10 @@ #ifndef INCLUDED_FORMS_SOURCE_INC_PROPERTY_HXX #define INCLUDED_FORMS_SOURCE_INC_PROPERTY_HXX +#include + +#include + #include #include #include @@ -27,7 +31,6 @@ #include #include #include -#include using namespace comphelper; @@ -61,7 +64,7 @@ class PropertyInfoService }; - DECLARE_STL_VECTOR(PropertyAssignment, PropertyMap); + typedef std::vector PropertyMap; static PropertyMap s_AllKnownProperties; //.................................................................. diff --git a/forms/source/misc/property.cxx b/forms/source/misc/property.cxx index 63da1d549fb9..476c16425c5f 100644 --- a/forms/source/misc/property.cxx +++ b/forms/source/misc/property.cxx @@ -42,7 +42,7 @@ sal_Int32 PropertyInfoService::getPropertyId(const OUString& _rName) PropertyAssignment aCompareName(_rName, -1); - ::std::pair aPair = ::std::equal_range( + ::std::pair aPair = ::std::equal_range( s_AllKnownProperties.begin(), s_AllKnownProperties.end(), aCompareName, -- cgit v1.2.3