summaryrefslogtreecommitdiff
path: root/basic/source/sbx/sbxdec.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source/sbx/sbxdec.cxx')
-rw-r--r--basic/source/sbx/sbxdec.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx
index 99d46128c9da..f546434df434 100644
--- a/basic/source/sbx/sbxdec.cxx
+++ b/basic/source/sbx/sbxdec.cxx
@@ -227,15 +227,11 @@ bool SbxDecimal::setString( OUString* pOUString )
pBuffer[i] = ',';
i++;
}
- hResult = VarDecFromStr(
- reinterpret_cast<wchar_t const *>(pBuffer.get()), nLANGID, 0,
- &maDec );
+ hResult = VarDecFromStr( SAL_W(pBuffer.get()), nLANGID, 0, &maDec );
}
else
{
- hResult = VarDecFromStr(
- reinterpret_cast<wchar_t const *>(pOUString->getStr()), nLANGID, 0,
- &maDec );
+ hResult = VarDecFromStr( SAL_W(pOUString->getStr()), nLANGID, 0, &maDec );
}
bRet = ( hResult == S_OK );
return bRet;
@@ -378,7 +374,7 @@ void SbxDecimal::getString( OUString& rString )
i++;
}
}
- rString = reinterpret_cast<const sal_Unicode*>(aBStr);
+ rString = SAL_U(aBStr);
}
SysFreeString( aBStr );