LCL: Remove a useless test in function DefaultMessageBox.

git-svn-id: trunk@53635 -
This commit is contained in:
juha 2016-12-11 15:18:31 +00:00
parent 02052bcaa9
commit a8646f33f5

View File

@ -846,12 +846,11 @@ begin
else
if (Flags and MB_OKCANCEL) = MB_OKCANCEL then
Buttons := [mbOK,mbCancel]
//else
//if (Flags and MB_OK) = MB_OK then <-- MB_OK = 0, the test would always be true.
// Buttons := [mbOK]
else
if (Flags and MB_OK) = MB_OK then
Buttons := [mbOK]
else
{%H-}Buttons := [mbOK];
Buttons := [mbOK];
if (Flags and MB_ICONINFORMATION) = MB_ICONINFORMATION then
DlgTYpe := mtInformation