From 703286356986ae2317bedfa20ee7dc36fa3aac81 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 13 May 2018 18:01:08 -0400 Subject: [PATCH] CodeViewWidget: Remove unnecessary QColor constructions QBrush also accepts regular GlobalColor values as well. --- Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp index e531fc66c8..ad8b4a54c7 100644 --- a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp @@ -127,13 +127,13 @@ void CodeViewWidget::Update() if (color != 0xFFFFFF) { - item->setForeground(QColor(Qt::black)); + item->setForeground(Qt::black); item->setBackground(QColor(color)); } if (addr == pc && item != bp_item) { - item->setBackground(QColor(Qt::green)); - item->setForeground(QColor(Qt::black)); + item->setBackground(Qt::green); + item->setForeground(Qt::black); } }