From b5dd06a1e0040c7d660025123b347e0e9f13ed9f Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 8 Aug 2007 16:23:59 +0000 Subject: [PATCH] Minor update to previous commit. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19367 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Counters.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Counters.cpp b/src/Counters.cpp index fb265764db..a3db807959 100644 --- a/src/Counters.cpp +++ b/src/Counters.cpp @@ -249,7 +249,7 @@ char hebrewCounter(int const n) //and for a list of roman numerals up to and including 3999, see //http://www.research.att.com/~njas/sequences/a006968.txt. (Thanks to Joost //for this info.) -docstring const romanCounter(int const n, bool lowercase = false) +docstring const romanCounter(int const n) { static char const * const ones[9] = { "I", "II", "III", "IV", "V", @@ -301,14 +301,13 @@ docstring const romanCounter(int const n, bool lowercase = false) if (val > 0) roman = roman + ones[val -1]; } - docstring retval = from_ascii(roman); - return lowercase ? support::lowercase(retval) : retval; + return from_ascii(roman); } docstring const lowerromanCounter(int const n) { - return romanCounter(n, true); + return support::lowercase(romanCounter(n)); } } // namespace anon