diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-09-26 12:46:41 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-09-27 15:03:41 +0200 |
commit | 89bb0b0dcd8dc4656d0047cd10702d1c471c0fa1 (patch) | |
tree | 890d97eaf2bbcab24cb777f8a65bd6fb47f4218d /cui | |
parent | 4b995afda324fb4e85991c723b63a2703f33669e (diff) |
Deduplicate O(U)StringNumber definitions; add toAsciiUpperCase
Change-Id: I00e7ce62940907b5f4efc2b7f23f355c3e43ed6b
Reviewed-on: https://gerrit.libreoffice.org/79686
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/cuicharmap.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/dialogs/cuicharmap.cxx b/cui/source/dialogs/cuicharmap.cxx index 3f0ace55a9b4..dba595d5dd21 100644 --- a/cui/source/dialogs/cuicharmap.cxx +++ b/cui/source/dialogs/cuicharmap.cxx @@ -873,7 +873,7 @@ IMPL_LINK(SvxCharacterMap, CharClickHdl, SvxCharView*, rView, void) OUString charValue = rView->GetText(); sal_Int32 tmp = 1; sal_UCS4 cChar = charValue.iterateCodePoints(&tmp, -1); - OUString aHexText = OUString(OUString::number(cChar, 16)).toAsciiUpperCase(); + OUString aHexText = OUString::number(cChar, 16).toAsciiUpperCase(); // Get the decimal code OUString aDecimalText = OUString::number(cChar); @@ -961,7 +961,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharHighlightHdl, SvxShowCharSet*, void) // using the new UCS4 constructor aText = OUString( &cChar, 1 ); // Get the hexadecimal code - aHexText = OUString(OUString::number(cChar, 16)).toAsciiUpperCase(); + aHexText = OUString::number(cChar, 16).toAsciiUpperCase(); // Get the decimal code aDecimalText = OUString::number(cChar); setCharName(cChar); @@ -1001,7 +1001,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, SearchCharHighlightHdl, SvxShowCharSet*, void) { aText = OUString( &cChar, 1 ); // Get the hexadecimal code - aHexText = OUString(OUString::number(cChar, 16)).toAsciiUpperCase(); + aHexText = OUString::number(cChar, 16).toAsciiUpperCase(); // Get the decimal code aDecimalText = OUString::number(cChar); setCharName(cChar); |