summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-12 11:23:45 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-12 11:44:09 +0000
commite62fba7934dc5ae51c61940a157c485649378597 (patch)
tree7499324484ee2a366983f1ba9988278d522a04a1 /linguistic
parent78a3f62fdca6f50de2935c9a4bd8695b657efb35 (diff)
RTL_CONSTASCII_USTRINGPARAM used with nonarray
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/lngopt.cxx12
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;
}