summaryrefslogtreecommitdiff
path: root/svtools/source/control
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-21 12:23:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-21 14:26:32 +0100
commit91e181ea585855bea97a07823f7334d0b98b20d5 (patch)
tree2578b79ddca097390802b5d2f5d5676d6a7821ff /svtools/source/control
parent958f7b512cff932f7f2d52d128c297d0f0ab6354 (diff)
remove uses of COMPARE_*
Change-Id: Icdc36b4b24d2f399f481065df3200feb98025135
Diffstat (limited to 'svtools/source/control')
-rw-r--r--svtools/source/control/ctrltool.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx
index af0f2f9b6eaa..4f8fc91e5d6c 100644
--- a/svtools/source/control/ctrltool.cxx
+++ b/svtools/source/control/ctrltool.cxx
@@ -128,18 +128,18 @@ static sal_Int32 ImplCompareFontInfo( ImplFontListFontInfo* pInfo1,
{
//Sort non italic before italics
if ( pInfo1->GetItalic() < pInfo2->GetItalic() )
- return COMPARE_LESS;
+ return -1;
else if ( pInfo1->GetItalic() > pInfo2->GetItalic() )
- return COMPARE_GREATER;
+ return 1;
//Sort normal weight to the start, followed by lightest to heaviest weights
int nWeight1 = sortWeightValue(pInfo1->GetWeight());
int nWeight2 = sortWeightValue(pInfo2->GetWeight());
if ( nWeight1 < nWeight2 )
- return COMPARE_LESS;
+ return -1;
else if ( nWeight1 > nWeight2 )
- return COMPARE_GREATER;
+ return 1;
return pInfo1->GetStyleName().compareTo( pInfo2->GetStyleName() );
}