Kaydet (Commit) dd691312 authored tarafından Caolán McNamara's avatar Caolán McNamara

we shouldn't need explicit lt_rtl_OUString, etc things anymore

Change-Id: Ibeec3fcc353e07e61fb2c838b318e0a04081ce2c
üst 3be5dead
......@@ -58,8 +58,8 @@ namespace editeng
class HangulHanjaConversion_Impl
{
private:
typedef ::std::set< OUString, ::std::less< OUString > > StringBag;
typedef ::std::map< OUString, OUString, ::std::less< OUString > > StringMap;
typedef std::set<OUString> StringBag;
typedef std::map<OUString, OUString> StringMap;
private:
StringBag m_sIgnoreList;
......
......@@ -30,17 +30,9 @@
#include <sal/types.h>
#include <rtl/ustring.hxx>
struct LessString
{
bool operator()(const OString& str1, const OString& str2) const
{
return (str1 < str2);
}
};
typedef ::std::list< OString > StringList;
typedef ::std::vector< OString > StringVector;
typedef ::std::set< OString, LessString > StringSet;
typedef ::std::set< OString > StringSet;
class AstDeclaration;
......
......@@ -30,17 +30,9 @@
#include <rtl/ustring.hxx>
#include <rtl/strbuf.hxx>
struct LessString
{
bool operator()(const ::rtl::OString& str1, const ::rtl::OString& str2) const
{
return (str1 < str2);
}
};
typedef ::std::list< ::rtl::OString > StringList;
typedef ::std::vector< ::rtl::OString > StringVector;
typedef ::std::set< ::rtl::OString, LessString > StringSet;
typedef ::std::set< ::rtl::OString > StringSet;
// FileStream
......
......@@ -149,7 +149,7 @@ Sequence< Locale > SAL_CALL Hyphenator::getLocales()
{
// get supported locales from the dictionaries-to-use...
sal_Int32 k = 0;
std::set< OUString, lt_rtl_OUString > aLocaleNamesSet;
std::set<OUString> aLocaleNamesSet;
std::list< SvtLinguConfigDictionaryEntry >::const_iterator aDictIt;
for (aDictIt = aDics.begin(); aDictIt != aDics.end(); ++aDictIt)
{
......@@ -162,7 +162,7 @@ Sequence< Locale > SAL_CALL Hyphenator::getLocales()
}
// ... and add them to the resulting sequence
aSuppLocales.realloc( aLocaleNamesSet.size() );
std::set< OUString, lt_rtl_OUString >::const_iterator aItB;
std::set<OUString>::const_iterator aItB;
k = 0;
for (aItB = aLocaleNamesSet.begin(); aItB != aLocaleNamesSet.end(); ++aItB)
{
......
......@@ -33,14 +33,6 @@
struct SvtLinguConfigDictionaryEntry;
struct lt_rtl_OUString
{
bool operator() (const OUString &r1, const OUString &r2) const
{
return r1 < r2;
}
};
#if defined(_WIN32)
// to be use to get a path name with long path prefix
......
......@@ -147,7 +147,7 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
uno::Reference< ucb::XSimpleFileAccess > xAccess(xServiceFactory->createInstance("com.sun.star.ucb.SimpleFileAccess"), uno::UNO_QUERY);
// get supported locales from the dictionaries-to-use...
sal_Int32 k = 0;
std::set< OUString, lt_rtl_OUString > aLocaleNamesSet;
std::set<OUString> aLocaleNamesSet;
std::list< SvtLinguConfigDictionaryEntry >::const_iterator aDictIt;
for (aDictIt = aDics.begin(); aDictIt != aDics.end(); ++aDictIt)
{
......@@ -176,7 +176,7 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
}
// ... and add them to the resulting sequence
aSuppLocales.realloc( aLocaleNamesSet.size() );
std::set< OUString, lt_rtl_OUString >::const_iterator aItB;
std::set<OUString>::const_iterator aItB;
k = 0;
for (aItB = aLocaleNamesSet.begin(); aItB != aLocaleNamesSet.end(); ++aItB)
{
......
......@@ -164,7 +164,7 @@ Sequence< Locale > SAL_CALL Thesaurus::getLocales()
{
// get supported locales from the dictionaries-to-use...
sal_Int32 k = 0;
std::set< OUString, lt_rtl_OUString > aLocaleNamesSet;
std::set<OUString> aLocaleNamesSet;
std::list< SvtLinguConfigDictionaryEntry >::const_iterator aDictIt;
for (aDictIt = aDics.begin(); aDictIt != aDics.end(); ++aDictIt)
{
......@@ -177,7 +177,7 @@ Sequence< Locale > SAL_CALL Thesaurus::getLocales()
}
// ... and add them to the resulting sequence
aSuppLocales.realloc( aLocaleNamesSet.size() );
std::set< OUString, lt_rtl_OUString >::const_iterator aItB;
std::set<OUString>::const_iterator aItB;
k = 0;
for (aItB = aLocaleNamesSet.begin(); aItB != aLocaleNamesSet.end(); ++aItB)
{
......
......@@ -41,30 +41,11 @@
bool IsConvDic( const OUString &rFileURL, sal_Int16 &nLang, sal_Int16 &nConvType );
struct StrLT
{
bool operator()( const OUString &rTxt1, const OUString &rTxt2 ) const
{
return rTxt1 < rTxt2;
}
};
struct StrEQ
{
bool operator()( const OUString &rTxt1, const OUString &rTxt2 ) const
{
return rTxt1 == rTxt2;
}
};
typedef std::unordered_multimap< OUString, OUString,
const OUStringHash, StrEQ > ConvMap;
typedef std::set< OUString, StrLT > ConvMapKeySet;
typedef std::unordered_multimap<OUString, OUString, const OUStringHash> ConvMap;
typedef std::unordered_multimap< OUString, sal_Int16,
OUStringHash, StrEQ > PropTypeMap;
typedef std::set<OUString> ConvMapKeySet;
typedef std::unordered_multimap<OUString, sal_Int16, OUStringHash> PropTypeMap;
class ConvDic :
public ::cppu::WeakImplHelper
......
......@@ -1399,14 +1399,6 @@ XclExpComments::XclExpComments( SCTAB nTab, XclExpRecordList< XclExpNote >& rNot
{
}
struct OUStringLess : public std::binary_function<OUString, OUString, bool>
{
bool operator()(const OUString& x, const OUString& y) const
{
return x.compareTo( y ) < 0;
}
};
void XclExpComments::SaveXml( XclExpXmlStream& rStrm )
{
if( mrNotes.IsEmpty() )
......@@ -1436,7 +1428,7 @@ void XclExpComments::SaveXml( XclExpXmlStream& rStrm )
rComments->startElement( XML_authors, FSEND );
typedef std::set< OUString, OUStringLess > Authors;
typedef std::set<OUString> Authors;
Authors aAuthors;
size_t nNotes = mrNotes.GetSize();
......
......@@ -1396,7 +1396,7 @@ void SwWW8ReferencedFltEndStack::SetAttrInDoc( const SwPosition& rTmpPos,
if ( pFltBookmark != nullptr && pFltBookmark->IsTOCBookmark() )
{
const OUString& rName = pFltBookmark->GetName();
std::set< OUString, SwWW8::ltstr >::const_iterator aResult = aReferencedTOCBookmarks.find(rName);
std::set<OUString>::const_iterator aResult = aReferencedTOCBookmarks.find(rName);
if ( aResult == aReferencedTOCBookmarks.end() )
{
bInsertBookmarkIntoDoc = false;
......
......@@ -428,14 +428,6 @@ private:
namespace SwWW8
{
struct ltstr
{
bool operator()(const OUString &r1, const OUString &r2) const
{
return r1.compareToIgnoreAsciiCase(r2)<0;
}
};
struct ltnode
{
bool operator()(const SwTextNode *r1, const SwTextNode *r2) const
......@@ -455,7 +447,7 @@ public:
// Keep track of referenced TOC bookmarks in order to suppress the import
// of unreferenced ones.
std::set<OUString, SwWW8::ltstr> aReferencedTOCBookmarks;
std::set<OUString> aReferencedTOCBookmarks;
protected:
virtual void SetAttrInDoc( const SwPosition& rTmpPos,
SwFltStackEntry& rEntry ) override;
......@@ -473,7 +465,7 @@ public:
//Keep track of variable names created with fields, and the bookmark
//mapped to their position, hopefully the same, but very possibly
//an additional pseudo bookmark
std::map<OUString, OUString, SwWW8::ltstr> aFieldVarNames;
std::map<OUString, OUString> aFieldVarNames;
protected:
SwFltStackEntry *RefToVar(const SwField* pField,SwFltStackEntry& rEntry);
virtual void SetAttrInDoc(const SwPosition& rTmpPos,
......
......@@ -1273,7 +1273,7 @@ SwFltStackEntry *SwWW8FltRefStack::RefToVar(const SwField* pField,
{
//Get the name of the ref field, and see if actually a variable
const OUString sName = pField->GetPar1();
std::map<OUString, OUString, SwWW8::ltstr>::const_iterator
std::map<OUString, OUString>::const_iterator
aResult = aFieldVarNames.find(sName);
if (aResult != aFieldVarNames.end())
......@@ -1297,7 +1297,7 @@ OUString SwWW8ImplReader::GetMappedBookmark(const OUString &rOrigName)
//See if there has been a variable set with this name, if so get
//the pseudo bookmark name that was set with it.
std::map<OUString, OUString, SwWW8::ltstr>::const_iterator aResult =
std::map<OUString, OUString>::const_iterator aResult =
m_pReffingStck->aFieldVarNames.find(sName);
return (aResult == m_pReffingStck->aFieldVarNames.end())
......
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