From 9e25784d6da700fa5d2a810fef4e6dc1af8e7869 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Mon, 24 Dec 2012 09:55:58 -0500 Subject: [PATCH] A few more c style casts -> static_casts --- src/EditProfileDialog.cpp | 2 +- src/KeyBindingEditor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp index 6ae3da067..00066e11b 100644 --- a/src/EditProfileDialog.cpp +++ b/src/EditProfileDialog.cpp @@ -1353,7 +1353,7 @@ QSize ColorSchemeViewDelegate::sizeHint(const QStyleOptionViewItem& option, qreal heightForWidth = (colorWidth * 2) + option.fontMetrics.height() + margin; // temporary - return QSize(width, (int)heightForWidth); + return QSize(width, static_cast(heightForWidth)); } #include "EditProfileDialog.moc" diff --git a/src/KeyBindingEditor.cpp b/src/KeyBindingEditor.cpp index 1f23fa38f..48fd6d50b 100644 --- a/src/KeyBindingEditor.cpp +++ b/src/KeyBindingEditor.cpp @@ -114,7 +114,7 @@ bool KeyBindingEditor::eventFilter(QObject* watched , QEvent* event) { if (watched == _ui->testAreaInputEdit) { if (event->type() == QEvent::KeyPress) { - QKeyEvent* keyEvent = (QKeyEvent*)event; + QKeyEvent* keyEvent = static_cast(event); // The state here is currently set to the state that a newly started // terminal in Konsole will be in ( which is also the same as the