Kaydet (Commit) 0c553035 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Get rid of DECLARE_STL_STDKEY_SET

Change-Id: I4817694d183d525fa5a29eb9693a20d491549e5d
üst 75c4bff5
...@@ -17,6 +17,9 @@ ...@@ -17,6 +17,9 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <sal/config.h>
#include <set>
#include "documentenumeration.hxx" #include "documentenumeration.hxx"
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <o3tl/compat_functional.hxx> #include <o3tl/compat_functional.hxx>
#include <iterator> #include <iterator>
#include <set>
using namespace ::comphelper; using namespace ::comphelper;
using namespace connectivity; using namespace connectivity;
......
...@@ -83,6 +83,7 @@ ...@@ -83,6 +83,7 @@
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <set>
using namespace ::comphelper; using namespace ::comphelper;
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
......
...@@ -67,8 +67,10 @@ ...@@ -67,8 +67,10 @@
#include <unotools/confignode.hxx> #include <unotools/confignode.hxx>
#include <unotools/sharedunocomponent.hxx> #include <unotools/sharedunocomponent.hxx>
#include <rtl/digest.h> #include <rtl/digest.h>
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <set>
using namespace ::com::sun::star::sdbc; using namespace ::com::sun::star::sdbc;
using namespace ::com::sun::star::sdbcx; using namespace ::com::sun::star::sdbcx;
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef INCLUDED_DBACCESS_SOURCE_UI_DLG_DBADMINIMPL_HXX #ifndef INCLUDED_DBACCESS_SOURCE_UI_DLG_DBADMINIMPL_HXX
#define INCLUDED_DBACCESS_SOURCE_UI_DLG_DBADMINIMPL_HXX #define INCLUDED_DBACCESS_SOURCE_UI_DLG_DBADMINIMPL_HXX
#include <sal/config.h>
#include <set>
#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/PropertyValue.hpp>
......
...@@ -138,7 +138,7 @@ void ODatasourceSelectDialog::fillListBox(const StringBag& _rDatasources) ...@@ -138,7 +138,7 @@ void ODatasourceSelectDialog::fillListBox(const StringBag& _rDatasources)
sSelected = m_aDatasource.GetSelectEntry(); sSelected = m_aDatasource.GetSelectEntry();
m_aDatasource.Clear(); m_aDatasource.Clear();
// fill the list // fill the list
for ( ConstStringBagIterator aDS = _rDatasources.begin(); for ( StringBag::const_iterator aDS = _rDatasources.begin();
aDS != _rDatasources.end(); aDS != _rDatasources.end();
++aDS ++aDS
) )
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_COMMONTYPES_HXX #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_COMMONTYPES_HXX
#define INCLUDED_DBACCESS_SOURCE_UI_INC_COMMONTYPES_HXX #define INCLUDED_DBACCESS_SOURCE_UI_INC_COMMONTYPES_HXX
#include <sal/config.h>
#include <set>
#include <comphelper/stl_types.hxx> #include <comphelper/stl_types.hxx>
#include <unotools/sharedunocomponent.hxx> #include <unotools/sharedunocomponent.hxx>
...@@ -32,7 +36,7 @@ namespace com { namespace sun { namespace star { ...@@ -32,7 +36,7 @@ namespace com { namespace sun { namespace star {
namespace dbaui namespace dbaui
{ {
DECLARE_STL_STDKEY_SET( OUString, StringBag ); typedef std::set<OUString> StringBag;
DECLARE_STL_VECTOR( sal_Int8, ByteVector ); DECLARE_STL_VECTOR( sal_Int8, ByteVector );
DECLARE_STL_VECTOR( OUString, StringArray ); DECLARE_STL_VECTOR( OUString, StringArray );
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_DSMETA_HXX #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_DSMETA_HXX
#define INCLUDED_DBACCESS_SOURCE_UI_INC_DSMETA_HXX #define INCLUDED_DBACCESS_SOURCE_UI_INC_DSMETA_HXX
#include <sal/config.h>
#include <set>
#include "dsntypes.hxx" #include "dsntypes.hxx"
#include "dsitems.hxx" #include "dsitems.hxx"
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef EXTENSIONS_ABP_ABPTYPES_HXX #ifndef EXTENSIONS_ABP_ABPTYPES_HXX
#define EXTENSIONS_ABP_ABPTYPES_HXX #define EXTENSIONS_ABP_ABPTYPES_HXX
#include <sal/config.h>
#include <set>
#include <comphelper/stl_types.hxx> #include <comphelper/stl_types.hxx>
#include <rtl/ustring.hxx> #include <rtl/ustring.hxx>
...@@ -28,7 +32,7 @@ namespace abp ...@@ -28,7 +32,7 @@ namespace abp
{ {
//......................................................................... //.........................................................................
DECLARE_STL_STDKEY_SET( OUString, StringBag ); typedef std::set<OUString> StringBag;
DECLARE_STL_USTRINGACCESS_MAP( OUString, MapString2String ); DECLARE_STL_USTRINGACCESS_MAP( OUString, MapString2String );
......
...@@ -213,7 +213,7 @@ namespace abp ...@@ -213,7 +213,7 @@ namespace abp
OUString& ODataSourceContext::disambiguate(OUString& _rDataSourceName) OUString& ODataSourceContext::disambiguate(OUString& _rDataSourceName)
{ {
OUString sCheck( _rDataSourceName ); OUString sCheck( _rDataSourceName );
ConstStringBagIterator aPos = m_pImpl->aDataSourceNames.find( sCheck ); StringBag::const_iterator aPos = m_pImpl->aDataSourceNames.find( sCheck );
sal_Int32 nPostFix = 1; sal_Int32 nPostFix = 1;
while ( ( m_pImpl->aDataSourceNames.end() != aPos ) && ( nPostFix < 65535 ) ) while ( ( m_pImpl->aDataSourceNames.end() != aPos ) && ( nPostFix < 65535 ) )
......
...@@ -72,7 +72,7 @@ namespace abp ...@@ -72,7 +72,7 @@ namespace abp
// this page should never bother the user if there is 1 or less tables. // this page should never bother the user if there is 1 or less tables.
// fill the list // fill the list
for ( ConstStringBagIterator aTables = aTableNames.begin(); for ( StringBag::const_iterator aTables = aTableNames.begin();
aTables != aTableNames.end(); aTables != aTableNames.end();
++aTables ++aTables
) )
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef _EXTENSIONS_DBP_DBPTYPES_HXX_ #ifndef _EXTENSIONS_DBP_DBPTYPES_HXX_
#define _EXTENSIONS_DBP_DBPTYPES_HXX_ #define _EXTENSIONS_DBP_DBPTYPES_HXX_
#include <sal/config.h>
#include <set>
#include <comphelper/stl_types.hxx> #include <comphelper/stl_types.hxx>
//......................................................................... //.........................................................................
...@@ -28,7 +32,7 @@ namespace dbp ...@@ -28,7 +32,7 @@ namespace dbp
//......................................................................... //.........................................................................
DECLARE_STL_VECTOR( OUString, StringArray ); DECLARE_STL_VECTOR( OUString, StringArray );
DECLARE_STL_STDKEY_SET( OUString, StringBag ); typedef std::set<OUString> StringBag;
DECLARE_STL_STDKEY_MAP( sal_uInt32, OUString, MapInt2String ); DECLARE_STL_STDKEY_MAP( sal_uInt32, OUString, MapInt2String );
//......................................................................... //.........................................................................
......
...@@ -20,9 +20,15 @@ ...@@ -20,9 +20,15 @@
#ifndef INCLUDED_FILTER_SOURCE_SVG_SVGFONTEXPORT_HXX #ifndef INCLUDED_FILTER_SOURCE_SVG_SVGFONTEXPORT_HXX
#define INCLUDED_FILTER_SOURCE_SVG_SVGFONTEXPORT_HXX #define INCLUDED_FILTER_SOURCE_SVG_SVGFONTEXPORT_HXX
#include <comphelper/stl_types.hxx> #include <sal/config.h>
#include <tools/fontenum.hxx>
#include <functional>
#include <map>
#include <set>
#include <vector>
#include <rtl/ustring.hxx>
#include <tools/fontenum.hxx>
// ----------------- // -----------------
// - SVGFontExport - // - SVGFontExport -
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
#include <map> #include <map>
#include <stack> #include <stack>
#include <set>
#include <math.h> #include <math.h>
#include <functional> #include <functional>
...@@ -260,10 +259,6 @@ OutputIter intersperse( ...@@ -260,10 +259,6 @@ OutputIter intersperse(
#define DECLARE_STL_USTRINGACCESS_MAP(valuetype, classname) \ #define DECLARE_STL_USTRINGACCESS_MAP(valuetype, classname) \
DECLARE_STL_MAP(OUString, valuetype, ::comphelper::UStringLess, classname) \ DECLARE_STL_MAP(OUString, valuetype, ::comphelper::UStringLess, classname) \
#define DECLARE_STL_STDKEY_SET(valuetype, classname) \
typedef ::std::set< valuetype > classname; \
DECLARE_STL_ITERATORS(classname) \
#endif // INCLUDED_COMPHELPER_STL_TYPES_HXX #endif // INCLUDED_COMPHELPER_STL_TYPES_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <sal/config.h> #include <sal/config.h>
#include <cstddef> #include <cstddef>
#include <set>
#include <comphelper/stl_types.hxx> #include <comphelper/stl_types.hxx>
#include <rtl/textenc.h> #include <rtl/textenc.h>
...@@ -55,7 +56,7 @@ namespace dbtools ...@@ -55,7 +56,7 @@ namespace dbtools
class OOO_DLLPUBLIC_DBTOOLS OCharsetMap class OOO_DLLPUBLIC_DBTOOLS OCharsetMap
{ {
protected: protected:
DECLARE_STL_STDKEY_SET( rtl_TextEncoding, TextEncBag ); typedef std::set<rtl_TextEncoding> TextEncBag;
TextEncBag m_aEncodings; TextEncBag m_aEncodings;
......
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
#define INCLUDED_XMLOFF_XMLIMP_HXX #define INCLUDED_XMLOFF_XMLIMP_HXX
#include <sal/config.h> #include <sal/config.h>
#include <set>
#include <xmloff/dllapi.h> #include <xmloff/dllapi.h>
#include <sal/types.h> #include <sal/types.h>
#include <com/sun/star/embed/XStorage.hpp> #include <com/sun/star/embed/XStorage.hpp>
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
#ifndef INCLUDED_SVX_SOURCE_INC_FMEXCH_HXX #ifndef INCLUDED_SVX_SOURCE_INC_FMEXCH_HXX
#define INCLUDED_SVX_SOURCE_INC_FMEXCH_HXX #define INCLUDED_SVX_SOURCE_INC_FMEXCH_HXX
#include <sal/config.h>
#include <set>
#include <comphelper/stl_types.hxx> #include <comphelper/stl_types.hxx>
#include <svtools/transfer.hxx> #include <svtools/transfer.hxx>
#include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/uno/Sequence.hxx>
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
#include <com/sun/star/task/XStatusIndicator.hpp> #include <com/sun/star/task/XStatusIndicator.hpp>
#include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/drawing/XDrawPage.hpp> #include <com/sun/star/drawing/XDrawPage.hpp>
#include <comphelper/stl_types.hxx>
#include <set>
#include <vector> #include <vector>
class Rectangle; class Rectangle;
...@@ -59,7 +59,7 @@ enum XmlPlaceholder ...@@ -59,7 +59,7 @@ enum XmlPlaceholder
XmlPlaceholderVerticalOutline XmlPlaceholderVerticalOutline
}; };
DECLARE_STL_STDKEY_SET( sal_Int32, SdXMLFormatMap ); typedef std::set<sal_Int32> SdXMLFormatMap;
struct HeaderFooterPageSettingsImpl struct HeaderFooterPageSettingsImpl
{ {
......
...@@ -1331,7 +1331,7 @@ namespace xmloff ...@@ -1331,7 +1331,7 @@ namespace xmloff
++pValues; ++pValues;
} }
Int16SetIterator aSelectedPos = aSelection.find(i); Int16Set::iterator aSelectedPos = aSelection.find(i);
if (aSelection.end() != aSelectedPos) if (aSelection.end() != aSelectedPos)
{ // the item at this position is selected { // the item at this position is selected
AddAttribute( AddAttribute(
...@@ -1342,7 +1342,7 @@ namespace xmloff ...@@ -1342,7 +1342,7 @@ namespace xmloff
aSelection.erase(aSelectedPos); aSelection.erase(aSelectedPos);
} }
Int16SetIterator aDefaultSelectedPos = aDefaultSelection.find(i); Int16Set::iterator aDefaultSelectedPos = aDefaultSelection.find(i);
if (aDefaultSelection.end() != aDefaultSelectedPos) if (aDefaultSelection.end() != aDefaultSelectedPos)
{ // the item at this position is selected as default { // the item at this position is selected as default
AddAttribute( AddAttribute(
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef INCLUDED_XMLOFF_SOURCE_FORMS_ELEMENTEXPORT_HXX #ifndef INCLUDED_XMLOFF_SOURCE_FORMS_ELEMENTEXPORT_HXX
#define INCLUDED_XMLOFF_SOURCE_FORMS_ELEMENTEXPORT_HXX #define INCLUDED_XMLOFF_SOURCE_FORMS_ELEMENTEXPORT_HXX
#include <sal/config.h>
#include <set>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/script/ScriptEventDescriptor.hpp> #include <com/sun/star/script/ScriptEventDescriptor.hpp>
...@@ -83,7 +87,7 @@ namespace xmloff ...@@ -83,7 +87,7 @@ namespace xmloff
,public OElementExport ,public OElementExport
{ {
protected: protected:
DECLARE_STL_STDKEY_SET(sal_Int16, Int16Set); typedef std::set<sal_Int16> Int16Set;
// used below // used below
OUString m_sControlId; // the control id to use when exporting OUString m_sControlId; // the control id to use when exporting
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef INCLUDED_XMLOFF_SOURCE_FORMS_LAYEREXPORT_HXX #ifndef INCLUDED_XMLOFF_SOURCE_FORMS_LAYEREXPORT_HXX
#define INCLUDED_XMLOFF_SOURCE_FORMS_LAYEREXPORT_HXX #define INCLUDED_XMLOFF_SOURCE_FORMS_LAYEREXPORT_HXX
#include <sal/config.h>
#include <set>
#include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/script/ScriptEventDescriptor.hpp> #include <com/sun/star/script/ScriptEventDescriptor.hpp>
#include <com/sun/star/util/XNumberFormats.hpp> #include <com/sun/star/util/XNumberFormats.hpp>
......
...@@ -108,7 +108,7 @@ namespace xmloff ...@@ -108,7 +108,7 @@ namespace xmloff
OUString sValue; OUString sValue;
// loop through all the properties which are yet to be exported // loop through all the properties which are yet to be exported
for ( ConstStringSetIterator aProperty = m_aRemainingProps.begin(); for ( StringSet::const_iterator aProperty = m_aRemainingProps.begin();
aProperty != m_aRemainingProps.end(); aProperty != m_aRemainingProps.end();
++aProperty ++aProperty
) )
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYEXPORT_HXX #ifndef INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYEXPORT_HXX
#define INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYEXPORT_HXX #define INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYEXPORT_HXX
#include <sal/config.h>
#include <set>
#include "formattributes.hxx" #include "formattributes.hxx"
#include <comphelper/stl_types.hxx> #include <comphelper/stl_types.hxx>
#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/XPropertySet.hpp>
...@@ -54,7 +58,7 @@ namespace xmloff ...@@ -54,7 +58,7 @@ namespace xmloff
class OPropertyExport class OPropertyExport
{ {
private: private:
DECLARE_STL_STDKEY_SET(OUString, StringSet); typedef std::set<OUString> StringSet;
StringSet m_aRemainingProps; StringSet m_aRemainingProps;
// see examinePersistence // see examinePersistence
......
...@@ -20,6 +20,10 @@ ...@@ -20,6 +20,10 @@
#ifndef INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYIMPORT_HXX #ifndef INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYIMPORT_HXX
#define INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYIMPORT_HXX #define INCLUDED_XMLOFF_SOURCE_FORMS_PROPERTYIMPORT_HXX
#include <sal/config.h>
#include <set>
#include <xmloff/xmlictxt.hxx> #include <xmloff/xmlictxt.hxx>
#include "formattributes.hxx" #include "formattributes.hxx"
#include <rtl/ref.hxx> #include <rtl/ref.hxx>
...@@ -68,7 +72,7 @@ namespace xmloff ...@@ -68,7 +72,7 @@ namespace xmloff
PropertyValueArray m_aGenericValues; PropertyValueArray m_aGenericValues;
// the values which the instance collects between StartElement and EndElement // the values which the instance collects between StartElement and EndElement
DECLARE_STL_STDKEY_SET( OUString, StringSet ); typedef std::set<OUString> StringSet;
StringSet m_aEncounteredAttributes; StringSet m_aEncounteredAttributes;
OFormLayerXMLImport_Impl& m_rContext; OFormLayerXMLImport_Impl& m_rContext;
......
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