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 21:21:12 +0000
commit7fa27749f8babf5f5ecb1dd845adf31dae6faf62 (patch)
treebd2a38ae2db50ac1abf47a247ac6c1082297121d /linguistic
parent95c27c717e22c51a90861bef568dc4642df0b11e (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 00f074310c..7a1cbb509e 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;
}