summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-02-14 11:23:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-14 11:23:22 +0000
commita91ecea2c9e656f35fac086aa2f81d74e9f0898f (patch)
treefb14c83a778385686a621a39b4c700aa9c9bbb0f
parente14a7a06c3e368e6942035277212ca5ebc74ffca (diff)
adapt for move of natural sort
-rw-r--r--sfx2/source/dialog/templdlg.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx
index 58eb7fdf1b..5f279a18d2 100644
--- a/sfx2/source/dialog/templdlg.cxx
+++ b/sfx2/source/dialog/templdlg.cxx
@@ -76,6 +76,7 @@
#include <sfx2/viewfrm.hxx>
#include <comphelper/configurationhelper.hxx>
+#include <comphelper/string.hxx>
using namespace ::com::sun::star;
using namespace ::com::sun::star::beans;
@@ -684,7 +685,7 @@ StyleTreeArr_Impl &MakeTree_Impl(StyleTreeArr_Impl &rArr)
// initial sortiert einfuegen
USHORT nPos;
for( nPos = 0 ; nPos < pCmp->Count() &&
- (*pCmp->pChilds)[nPos]->aName.CompareToNumeric(pEntry->aName) < 0 ; nPos++);
+ comphelper::string::compareNatural((*pCmp->pChilds)[nPos]->aName, pEntry->aName) < 0 ; nPos++);
pCmp->Put(pEntry,nPos);
break;
}
@@ -1317,7 +1318,7 @@ void SfxCommonTemplateDialog_Impl::UpdateStyles_Impl(USHORT nFlags)
//Bubblesort
USHORT nPos;
for( nPos = aStrings.Count() ; nPos &&
- aStrings[nPos-1]->CompareToNumeric(pStyle->GetName()) > 0 ; nPos--);
+ comphelper::string::compareNatural(*(aStrings[nPos-1]), pStyle->GetName()) > 0 ; nPos--);
aStrings.Insert( new String( pStyle->GetName() ), nPos );
pStyle = pStyleSheetPool->Next();
}