Fix for CListModelBase::at to support classes with defaulted (C++11 §8.4.2/4) default constructors.

This commit is contained in:
Mathew Sutcliffe
2014-11-16 13:51:54 +00:00
parent 60e1f306f6
commit 9b06bb1a1e

View File

@@ -202,7 +202,7 @@ namespace BlackGui
{ {
if (index.row() < 0 || index.row() >= this->m_container.size()) if (index.row() < 0 || index.row() >= this->m_container.size())
{ {
const static ObjectType def; // default object static const ObjectType def{}; // default object
return def; return def;
} }
else else