Kaydet (Commit) f62a00f3 authored tarafından Eike Rathke's avatar Eike Rathke

can we stick a with our naming conventions, just a little bit?

Change-Id: I1457c64162c2aeb083e98a28737991ae6d0eee2e
üst be35d10c
...@@ -66,19 +66,19 @@ namespace ...@@ -66,19 +66,19 @@ namespace
* than english ones, ICU 4.2+ has to be used. * than english ones, ICU 4.2+ has to be used.
*/ */
uno::Sequence< OUString > SAL_CALL OrdinalSuffix::getOrdinalSuffix( sal_Int32 nNumber, uno::Sequence< OUString > SAL_CALL OrdinalSuffix::getOrdinalSuffix( sal_Int32 nNumber,
const lang::Locale &aLocale ) throw( RuntimeException ) const lang::Locale &rLocale ) throw( RuntimeException )
{ {
uno::Sequence< OUString > retValue; uno::Sequence< OUString > retValue;
// Get the value from ICU // Get the value from ICU
UErrorCode nCode = U_ZERO_ERROR; UErrorCode nCode = U_ZERO_ERROR;
const icu::Locale rIcuLocale( LanguageTagIcu::getIcuLocale( LanguageTag( aLocale))); const icu::Locale aIcuLocale( LanguageTagIcu::getIcuLocale( LanguageTag( rLocale)));
icu::RuleBasedNumberFormat formatter(icu::URBNF_ORDINAL, rIcuLocale, nCode); icu::RuleBasedNumberFormat formatter(icu::URBNF_ORDINAL, aIcuLocale, nCode);
if (!U_SUCCESS(nCode)) if (!U_SUCCESS(nCode))
return retValue; return retValue;
boost::scoped_ptr<NumberFormat> xNumberFormat(icu::NumberFormat::createInstance(rIcuLocale, nCode)); boost::scoped_ptr<NumberFormat> xNumberFormat(icu::NumberFormat::createInstance(aIcuLocale, nCode));
if (!U_SUCCESS(nCode)) if (!U_SUCCESS(nCode))
return retValue; return retValue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment