Some more loplugin:cstylecast: helpcompiler

Change-Id: I9e094356601cf156537f75d0629fd214710d80e8
This commit is contained in:
Stephan Bergmann
2015-01-17 18:47:15 +01:00
parent d69fb68f30
commit b7c27fef4e
4 changed files with 31 additions and 31 deletions

View File

@@ -30,10 +30,10 @@ OUString TCHARArrayToOUString(TCHAR const *str)
{
// UTF-16
if (sizeof(TCHAR) == sizeof(sal_Unicode))
return OUString((const sal_Unicode*)(str));
return OUString(reinterpret_cast<const sal_Unicode*>(str));
// UTF-32
return OUString((const sal_uInt32*)str, wcslen(str));
return OUString(reinterpret_cast<const sal_uInt32*>(str), wcslen(str));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */