summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-02-28 11:32:04 +0200
committerTor Lillqvist <tml@collabora.com>2014-02-28 11:32:08 +0200
commitb530a91f059ac29b1f596f36f3eb065de4db4352 (patch)
tree0a4c5f26bc308a667da2bc910d0a44adead5e893 /vcl
parentWaE: implicit conversion (IntegralCast) from bool to 'long' (diff)
downloadcore-b530a91f059ac29b1f596f36f3eb065de4db4352.tar.gz
core-b530a91f059ac29b1f596f36f3eb065de4db4352.zip
WaE: implicit conversion (IntegralCast) from bool to 'long'
Use the proper RET_OK amd RET_CANCEL parameters to EndDialog(). Change-Id: I2500e5e9793ee98c8cf38fc094d9f984576b67db
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/button.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 5c8859a24357..3086de5cbb40 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1682,7 +1682,7 @@ void OKButton::Click()
if ( pParent->IsDialog() )
{
if ( ((Dialog*)pParent)->IsInExecute() )
- ((Dialog*)pParent)->EndDialog( true );
+ ((Dialog*)pParent)->EndDialog( RET_OK );
// prevent recursive calls
else if ( !((Dialog*)pParent)->IsInClose() )
{
@@ -1739,7 +1739,7 @@ void CancelButton::Click()
if ( pParent->IsDialog() )
{
if ( ((Dialog*)pParent)->IsInExecute() )
- ((Dialog*)pParent)->EndDialog( false );
+ ((Dialog*)pParent)->EndDialog( RET_CANCEL );
// prevent recursive calls
else if ( !((Dialog*)pParent)->IsInClose() )
{