From ec5c560ca1396859f440f0cc009d0e808d891b2a Mon Sep 17 00:00:00 2001 From: Balthild Date: Tue, 17 Sep 2019 11:37:36 +0800 Subject: [PATCH] Fix code format --- src/cpp/QtGui/QIcon/qicon_wrap.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cpp/QtGui/QIcon/qicon_wrap.cpp b/src/cpp/QtGui/QIcon/qicon_wrap.cpp index 10e7d614e..d2a7642c5 100644 --- a/src/cpp/QtGui/QIcon/qicon_wrap.cpp +++ b/src/cpp/QtGui/QIcon/qicon_wrap.cpp @@ -59,15 +59,15 @@ Napi::Value QIconWrap::pixmap(const Napi::CallbackInfo& info) int height = heightValue.Int32Value(); QIcon::Mode mode = QIcon::Normal; - if (info.Length() > 2){ - int modeInt = info[2].As().Int32Value(); - mode = static_cast(modeInt); + if (info.Length() > 2) { + int modeInt = info[2].As().Int32Value(); + mode = static_cast(modeInt); } QIcon::State state = QIcon::Off; - if (info.Length() > 3){ - int stateInt = info[3].As().Int32Value(); - state = static_cast(stateInt); + if (info.Length() > 3) { + int stateInt = info[3].As().Int32Value(); + state = static_cast(stateInt); } QPixmap* pixmap = new QPixmap(this->instance->pixmap(width, height, mode));