Kaydet (Commit) 75c4bff5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Get rid of DECLARE_STL_SET

Change-Id: Ie3e2fb6d9376e3b6e98bb17671b3e9e93cd69923
üst 31c65a12
...@@ -557,7 +557,7 @@ struct PropertyValueLess ...@@ -557,7 +557,7 @@ struct PropertyValueLess
{ return x.Name < y.Name ? true : false; } // construct prevents a MSVC6 warning { return x.Name < y.Name ? true : false; } // construct prevents a MSVC6 warning
}; };
DECLARE_STL_SET( PropertyValue, PropertyValueLess, PropertyValueSet); typedef std::set<PropertyValue, PropertyValueLess> PropertyValueSet;
void ODbDataSourceAdministrationHelper::translateProperties(const Reference< XPropertySet >& _rxSource, SfxItemSet& _rDest) void ODbDataSourceAdministrationHelper::translateProperties(const Reference< XPropertySet >& _rxSource, SfxItemSet& _rDest)
{ {
...@@ -620,7 +620,7 @@ void ODbDataSourceAdministrationHelper::translateProperties(const Reference< XPr ...@@ -620,7 +620,7 @@ void ODbDataSourceAdministrationHelper::translateProperties(const Reference< XPr
++aIndirect) ++aIndirect)
{ {
aSearchFor.Name = aIndirect->second; aSearchFor.Name = aIndirect->second;
ConstPropertyValueSetIterator aInfoPos = aInfos.find(aSearchFor); PropertyValueSet::const_iterator aInfoPos = aInfos.find(aSearchFor);
if (aInfos.end() != aInfoPos) if (aInfos.end() != aInfoPos)
// the property is contained in the info sequence // the property is contained in the info sequence
// -> transfer it into an item // -> transfer it into an item
...@@ -745,7 +745,7 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS ...@@ -745,7 +745,7 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
for (sal_Int32 i = 0; i < nCount; ++i, ++pInfo) for (sal_Int32 i = 0; i < nCount; ++i, ++pInfo)
{ {
aSearchFor.Name = pInfo->Name; aSearchFor.Name = pInfo->Name;
PropertyValueSetIterator aOverwrittenSetting = aRelevantSettings.find(aSearchFor); PropertyValueSet::iterator aOverwrittenSetting = aRelevantSettings.find(aSearchFor);
if (aRelevantSettings.end() != aOverwrittenSetting) if (aRelevantSettings.end() != aOverwrittenSetting)
{ // the setting was present in the original sequence, and it is to be overwritten -> replace it { // the setting was present in the original sequence, and it is to be overwritten -> replace it
if ( !::comphelper::compare(pInfo->Value,aOverwrittenSetting->Value) ) if ( !::comphelper::compare(pInfo->Value,aOverwrittenSetting->Value) )
...@@ -815,8 +815,8 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS ...@@ -815,8 +815,8 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
sal_Int32 nOldLength = _rInfo.getLength(); sal_Int32 nOldLength = _rInfo.getLength();
_rInfo.realloc(nOldLength + aRelevantSettings.size()); _rInfo.realloc(nOldLength + aRelevantSettings.size());
PropertyValue* pAppendValues = _rInfo.getArray() + nOldLength; PropertyValue* pAppendValues = _rInfo.getArray() + nOldLength;
ConstPropertyValueSetIterator aRelevantEnd = aRelevantSettings.end(); PropertyValueSet::const_iterator aRelevantEnd = aRelevantSettings.end();
for ( ConstPropertyValueSetIterator aLoop = aRelevantSettings.begin(); for ( PropertyValueSet::const_iterator aLoop = aRelevantSettings.begin();
aLoop != aRelevantEnd; aLoop != aRelevantEnd;
++aLoop, ++pAppendValues ++aLoop, ++pAppendValues
) )
......
...@@ -264,10 +264,6 @@ OutputIter intersperse( ...@@ -264,10 +264,6 @@ OutputIter intersperse(
typedef ::std::set< valuetype > classname; \ typedef ::std::set< valuetype > classname; \
DECLARE_STL_ITERATORS(classname) \ DECLARE_STL_ITERATORS(classname) \
#define DECLARE_STL_SET(valuetype, comparefct, classname) \
typedef ::std::set< valuetype, comparefct > 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: */
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