From 9b06bb1a1e671dbd6dcd79a45e85478d3b743662 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Sun, 16 Nov 2014 13:51:54 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20for=20CListModelBase::at=20to=20support?= =?UTF-8?q?=20classes=20with=20defaulted=20(C++11=20=C2=A78.4.2/4)=20defau?= =?UTF-8?q?lt=20constructors.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/blackgui/models/listmodelbase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blackgui/models/listmodelbase.cpp b/src/blackgui/models/listmodelbase.cpp index 958025360..134020b28 100644 --- a/src/blackgui/models/listmodelbase.cpp +++ b/src/blackgui/models/listmodelbase.cpp @@ -202,7 +202,7 @@ namespace BlackGui { if (index.row() < 0 || index.row() >= this->m_container.size()) { - const static ObjectType def; // default object + static const ObjectType def{}; // default object return def; } else