From 49ae5bc75c59b2c645267ea535f5753e13299188 Mon Sep 17 00:00:00 2001 From: Nelsson Huotari Date: Thu, 10 May 2018 22:57:48 +0300 Subject: [PATCH] List initialization -> initialization in constructor --- apps/opencs/view/widget/scenetooltexturebrush.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/opencs/view/widget/scenetooltexturebrush.cpp b/apps/opencs/view/widget/scenetooltexturebrush.cpp index 990963415..2a41ce091 100644 --- a/apps/opencs/view/widget/scenetooltexturebrush.cpp +++ b/apps/opencs/view/widget/scenetooltexturebrush.cpp @@ -139,9 +139,11 @@ void CSVWidget::SceneToolTextureBrush::adjustToolTips() CSVWidget::SceneToolTextureBrush::SceneToolTextureBrush (SceneToolbar *parent, const QString& toolTip) : SceneTool (parent, Type_TopAction), mToolTip (toolTip), - mBrushHistory{"L0#0"}, mTextureBrushWindow(new TextureBrushWindow(this)) { + mBrushHistory.resize(1); + mBrushHistory[0] = "L0#0"; + setAcceptDrops(true); connect(mTextureBrushWindow, SIGNAL(passBrushShape(int)), this, SLOT(setButtonIcon(int))); setButtonIcon(mTextureBrushWindow->mBrushShape);