mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +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())
|
||||
{
|
||||
const static ObjectType def; // default object
|
||||
static const ObjectType def{}; // default object
|
||||
return def;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user