Replace C-style casts with static_cast.

This commit is contained in:
Haojian Wu 2017-03-30 23:05:47 +02:00
parent ff745e1a82
commit e8abee9ca9
5 changed files with 15 additions and 15 deletions

View file

@ -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);