summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basic/source/runtime/methods.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index fc060f725790..2cc26f78ea98 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -4634,11 +4634,7 @@ RTLFUNC(MsgBox)
pBox.reset(new MessBox( pParent, nWinBits, aTitle, aMsg ));
}
pBox->SetText( aTitle );
- sal_uInt16 nRet = (sal_uInt16)pBox->Execute();
- if( nRet == sal_True )
- {
- nRet = 1;
- }
+ short nRet = pBox->Execute();
sal_Int16 nMappedRet;
if( nStyle == 2 )
{