Reduced warings.

This commit is contained in:
2025-10-01 11:28:58 +02:00
parent b5f218084b
commit 1e82128ea0
4 changed files with 5 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ void XQChildModel::addModelData( const XQNodePtr& contentRoot )
if( !sheetNode->first_child()->has_children() )
continue;
XQItemList childList =_itemFactory.makeChildRow( list.front(), sheetNode->first_child(), contentEntry );
_itemFactory.makeChildRow( list.front(), sheetNode->first_child(), contentEntry );
}

View File

@@ -156,7 +156,9 @@ XQItemList XQItemFactory::makeRow(const XQNodePtr& sheetNode, const XQNodePtr& c
// __fix! Obacht! das setzt das vorhandensein des Contents voraus!
for( const auto& sheetEntry : sheetNode->children() )
{
list.append( makeItem( sheetEntry, contentNode ) );
}
Q_ASSERT(!list.empty());

View File

@@ -133,7 +133,7 @@ void XQViewModel::initModel(const QString& modelName)
*/
setObjectName( modelName );
// model rootnode finden -> <DocumentTreeModel>
XQNodePtr modelSheet = _itemFactory.findModelSheet( modelName ); // throws
XQNodePtr modelSheet = _itemFactory.findModelSheet( modelName ); // throws
// #1: über alle sections
for( auto& sectionNode : modelSheet->children() )