diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-02-28 11:32:04 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-02-28 11:32:08 +0200 |
commit | b530a91f059ac29b1f596f36f3eb065de4db4352 (patch) | |
tree | 0a4c5f26bc308a667da2bc910d0a44adead5e893 /vcl/source/control | |
parent | 5ce23eb9f12a52efcd7eb84d0b8ddc380d12eecb (diff) |
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/source/control')
-rw-r--r-- | vcl/source/control/button.cxx | 4 |
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() ) { |