Replace C-style casts with static_cast.
This commit is contained in:
parent
ff745e1a82
commit
e8abee9ca9
5 changed files with 15 additions and 15 deletions
|
@ -78,11 +78,11 @@ void ShowMessageBox(int type,
|
|||
if (mate::Converter<atom::MessageBoxCallback>::FromV8(args->isolate(),
|
||||
peek,
|
||||
&callback)) {
|
||||
atom::ShowMessageBox(window, (atom::MessageBoxType)type, buttons,
|
||||
atom::ShowMessageBox(window, static_cast<atom::MessageBoxType>(type), buttons,
|
||||
default_id, cancel_id, options, title, message, detail,
|
||||
checkbox_label, checkbox_checked, icon, callback);
|
||||
} else {
|
||||
int chosen = atom::ShowMessageBox(window, (atom::MessageBoxType)type,
|
||||
int chosen = atom::ShowMessageBox(window, static_cast<atom::MessageBoxType>(type),
|
||||
buttons, default_id, cancel_id,
|
||||
options, title, message, detail, icon);
|
||||
args->Return(chosen);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue