#92924#: const
This commit is contained in:
parent
cb6f2e5693
commit
c3e03390f2
1 changed files with 6 additions and 4 deletions
|
@ -2,9 +2,9 @@
|
||||||
*
|
*
|
||||||
* $RCSfile: databases.cxx,v $
|
* $RCSfile: databases.cxx,v $
|
||||||
*
|
*
|
||||||
* $Revision: 1.23 $
|
* $Revision: 1.24 $
|
||||||
*
|
*
|
||||||
* last change: $Author: abi $ $Date: 2001-10-05 14:38:57 $
|
* last change: $Author: hr $ $Date: 2001-10-24 10:55:13 $
|
||||||
*
|
*
|
||||||
* The Contents of this file are made available subject to the terms of
|
* The Contents of this file are made available subject to the terms of
|
||||||
* either of the following licenses
|
* either of the following licenses
|
||||||
|
@ -86,6 +86,8 @@
|
||||||
#endif
|
#endif
|
||||||
#include "inputstream.hxx"
|
#include "inputstream.hxx"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
|
|
||||||
using namespace chelp;
|
using namespace chelp;
|
||||||
using namespace com::sun::star::uno;
|
using namespace com::sun::star::uno;
|
||||||
|
@ -511,7 +513,7 @@ KeywordInfo::Compare::Compare( const Reference< XCollator >& xCollator )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int KeywordInfo::Compare::operator()( const rtl::OUString& l,const rtl::OUString& r )
|
int KeywordInfo::Compare::operator()( const rtl::OUString& l,const rtl::OUString& r ) const
|
||||||
{
|
{
|
||||||
if( m_xCollator.is() )
|
if( m_xCollator.is() )
|
||||||
{
|
{
|
||||||
|
@ -554,7 +556,7 @@ int KeywordInfo::Compare::operator()( const rtl::OUString& l,const rtl::OUString
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void KeywordInfo::sort( std::vector< rtl::OUString >& listKey_,Compare& comp )
|
void KeywordInfo::sort( std::vector< rtl::OUString >& listKey_, const Compare& comp )
|
||||||
{
|
{
|
||||||
std::sort( listKey_.begin(),listKey_.end(),comp );
|
std::sort( listKey_.begin(),listKey_.end(),comp );
|
||||||
listKey.realloc( listKey_.size() );
|
listKey.realloc( listKey_.size() );
|
||||||
|
|
Loading…
Reference in a new issue