summaryrefslogtreecommitdiff
path: root/sw/source/ui/docvw/edtwin.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-06-04 22:52:47 +0200
committerMichael Stahl <mstahl@redhat.com>2012-06-04 22:53:34 +0200
commit7b54689b0eba179e29ede8a7f0732fb4628dd031 (patch)
tree27b8e658d15332793f22dc94eade58bc10afecc3 /sw/source/ui/docvw/edtwin.cxx
parent881accb9a75fd080e706a6e184de955ae0ae17e1 (diff)
edtwin.cxx: try to shut up the tinderboxes
Change-Id: I504d3b0ac6250b88ca3de3cad179a7caec35e2a5
Diffstat (limited to 'sw/source/ui/docvw/edtwin.cxx')
-rw-r--r--sw/source/ui/docvw/edtwin.cxx34
1 files changed, 20 insertions, 14 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 831ab46acae5..fffe6c3a7cba 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -5656,27 +5656,33 @@ void QuickHelpData::FillStrArr( SwWrtShell& rSh, const String& rWord )
}
}
+namespace {
+
+struct CompareIgnoreCaseAscii
+{
+ bool operator()(const String& s1, const String& s2) const
+ {
+ return s1.CompareIgnoreCaseToAscii(s2) == COMPARE_LESS;
+ }
+};
+
+struct EqualIgnoreCaseAscii
+{
+ bool operator()(const String& s1, const String& s2) const
+ {
+ return s1.CompareIgnoreCaseToAscii(s2) == COMPARE_EQUAL;
+ }
+};
+
+} // anonymous namespace
+
// TODO - implement an i18n aware sort
void QuickHelpData::SortAndFilter()
{
- struct CompareIgnoreCaseAscii
- {
- bool operator()(const String& s1, const String& s2) const
- {
- return s1.CompareIgnoreCaseToAscii(s2) == COMPARE_LESS;
- }
- };
std::sort( pHelpStrings->begin(),
pHelpStrings->end(),
CompareIgnoreCaseAscii() );
- struct EqualIgnoreCaseAscii
- {
- bool operator()(const String& s1, const String& s2) const
- {
- return s1.CompareIgnoreCaseToAscii(s2) == COMPARE_EQUAL;
- }
- };
std::vector<String>::iterator it = std::unique( pHelpStrings->begin(),
pHelpStrings->end(),
EqualIgnoreCaseAscii() );