diff options
Diffstat (limited to 'connectivity/source/commontools/TSortIndex.cxx')
-rw-r--r-- | connectivity/source/commontools/TSortIndex.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/connectivity/source/commontools/TSortIndex.cxx b/connectivity/source/commontools/TSortIndex.cxx index a9d5bc5028b7..28ee408e4d9f 100644 --- a/connectivity/source/commontools/TSortIndex.cxx +++ b/connectivity/source/commontools/TSortIndex.cxx @@ -24,7 +24,7 @@ #include <o3tl/compat_functional.hxx> using namespace connectivity; -//------------------------------------------------------------------ + /// binary_function Functor object for class OSortIndex::TIntValuePairVector::value_type returntype is bool struct TKeyValueFunc : ::std::binary_function<OSortIndex::TIntValuePairVector::value_type,OSortIndex::TIntValuePairVector::value_type,bool> { @@ -76,7 +76,7 @@ struct TKeyValueFunc : ::std::binary_function<OSortIndex::TIntValuePairVector::v } }; -// ----------------------------------------------------------------------------- + ::rtl::Reference<OKeySet> OSortIndex::CreateKeySet() { Freeze(); @@ -90,7 +90,7 @@ struct TKeyValueFunc : ::std::binary_function<OSortIndex::TIntValuePairVector::v pKeySet->setFrozen(); return pKeySet; } -// ----------------------------------------------------------------------------- + OSortIndex::OSortIndex( const ::std::vector<OKeyType>& _aKeyType, const ::std::vector<TAscendingOrder>& _aAscending) :m_aKeyType(_aKeyType) @@ -98,11 +98,11 @@ OSortIndex::OSortIndex( const ::std::vector<OKeyType>& _aKeyType, ,m_bFrozen(sal_False) { } -//------------------------------------------------------------------ + OSortIndex::~OSortIndex() { } -//------------------------------------------------------------------ + void OSortIndex::AddKeyValue(OKeyValue * pKeyValue) { OSL_ENSURE(pKeyValue,"Can not be null here!"); @@ -116,7 +116,7 @@ void OSortIndex::AddKeyValue(OKeyValue * pKeyValue) } -//------------------------------------------------------------------ + void OSortIndex::Freeze() { OSL_ENSURE(! m_bFrozen,"OSortIndex::Freeze: already frozen!"); @@ -135,20 +135,20 @@ void OSortIndex::Freeze() m_bFrozen = sal_True; } -// ----------------------------------------------------------------------------- + OKeyValue::OKeyValue(sal_Int32 nVal) : m_nValue(nVal) { } -// ----------------------------------------------------------------------------- + OKeyValue::~OKeyValue() { } -// ----------------------------------------------------------------------------- + OKeyValue* OKeyValue::createKeyValue(sal_Int32 _nVal) { return new OKeyValue(_nVal); } -// ----------------------------------------------------------------------------- + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |