summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-05-09 19:19:11 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-05-09 19:19:11 +0200
commitdf45d9d1c037b27291c2173c4d0bfa6e3a42a73f (patch)
treeaf3a207ab476cd865b57b57350dcbd52e9086d76 /svtools
parentf21316fbf0176ee23999504ce03917caac190cb3 (diff)
work around -Wreturn-type with compilers that cannot figure it out themselves
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrltool.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/control/ctrltool.cxx b/svtools/source/control/ctrltool.cxx
index ffa4fbb92d56..8561167467f4 100644
--- a/svtools/source/control/ctrltool.cxx
+++ b/svtools/source/control/ctrltool.cxx
@@ -126,12 +126,11 @@ private:
//sort normal to the start
static int sortWeightValue(FontWeight eWeight)
{
- if (eWeight == WEIGHT_NORMAL)
- return 0;
if (eWeight < WEIGHT_NORMAL)
return eWeight + 1;
if (eWeight > WEIGHT_NORMAL)
return eWeight - 1;
+ return 0; // eWeight == WEIGHT_NORMAL
}
static StringCompare ImplCompareFontInfo( ImplFontListFontInfo* pInfo1,