mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 03:35:38 +08:00
Fix for CListModelBase::at to support classes with defaulted (C++11 §8.4.2/4) default constructors.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user