diff options
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngopt.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/linguistic/source/lngopt.cxx b/linguistic/source/lngopt.cxx index 179c61d6e934..4e102bf1aaa6 100644 --- a/linguistic/source/lngopt.cxx +++ b/linguistic/source/lngopt.cxx @@ -300,16 +300,10 @@ OUString LinguOptions::GetName( INT32 nWID ) OUString aRes; INT32 nLen = SAL_N_ELEMENTS( aWID_Name ); - if (0 <= nWID && nWID < nLen - && aWID_Name[ nWID ].nWID == nWID) - { - aRes = OUString( RTL_CONSTASCII_USTRINGPARAM( - aWID_Name[ nWID ].pPropertyName ) ); - } + if (0 <= nWID && nWID < nLen && aWID_Name[ nWID ].nWID == nWID) + aRes = OUString::createFromAscii(aWID_Name[nWID].pPropertyName); else - { - DBG_ASSERT( 0,"lng : unknown WID"); - } + OSL_ENSURE(false, "lng : unknown WID"); return aRes; } |