summaryrefslogtreecommitdiff
path: root/vcl/unx/generic/window/salframe.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/unx/generic/window/salframe.cxx')
-rw-r--r--vcl/unx/generic/window/salframe.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/unx/generic/window/salframe.cxx b/vcl/unx/generic/window/salframe.cxx
index e7a5cf85edc4..413d47c02a70 100644
--- a/vcl/unx/generic/window/salframe.cxx
+++ b/vcl/unx/generic/window/salframe.cxx
@@ -3176,7 +3176,7 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent )
KeySym nKeySym;
KeySym nUnmodifiedKeySym;
int nLen = 2048;
- unsigned char *pPrintable = (unsigned char*)alloca( nLen );
+ unsigned char *pPrintable = static_cast<unsigned char*>(alloca( nLen ));
// singlebyte code composed by input method, the new default
if (mpInputContext != NULL && mpInputContext->UseContext())
@@ -3190,7 +3190,7 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent )
if ( nStatus == XBufferOverflow )
{
nLen *= 2;
- pPrintable = (unsigned char*)alloca( nLen );
+ pPrintable = static_cast<unsigned char*>(alloca( nLen ));
nKeySym = pDisplay_->GetKeySym( pEvent, pPrintable, &nLen,
&nUnmodifiedKeySym,
&nStatus, mpInputContext->GetContext() );
@@ -3355,7 +3355,7 @@ long X11SalFrame::HandleKeyEvent( XKeyEvent *pEvent )
sal_Unicode *pString;
sal_Size nBufferSize = nLen * 2;
sal_Size nSize;
- pBuffer = (sal_Unicode*) malloc( nBufferSize + 2 );
+ pBuffer = static_cast<sal_Unicode*>(malloc( nBufferSize + 2 ));
pBuffer[ 0 ] = 0;
if (nKeyString != 0)