From 1e82128ea0c2856a43c236e4aca533293a91d11c Mon Sep 17 00:00:00 2001 From: "PANIK\\chris" Date: Wed, 1 Oct 2025 11:28:58 +0200 Subject: [PATCH] Reduced warings. --- src/application/xqchildmodel.cpp | 2 +- src/items/xqitemfactory.cpp | 2 ++ src/model/xqviewmodel.cpp | 2 +- xml/saved_testfile.xtr | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/application/xqchildmodel.cpp b/src/application/xqchildmodel.cpp index 98dbb42..0cbf9ba 100644 --- a/src/application/xqchildmodel.cpp +++ b/src/application/xqchildmodel.cpp @@ -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 ); } diff --git a/src/items/xqitemfactory.cpp b/src/items/xqitemfactory.cpp index cc75751..b781e33 100644 --- a/src/items/xqitemfactory.cpp +++ b/src/items/xqitemfactory.cpp @@ -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()); diff --git a/src/model/xqviewmodel.cpp b/src/model/xqviewmodel.cpp index cd471af..c2af70b 100644 --- a/src/model/xqviewmodel.cpp +++ b/src/model/xqviewmodel.cpp @@ -133,7 +133,7 @@ void XQViewModel::initModel(const QString& modelName) */ setObjectName( modelName ); // model rootnode finden -> - XQNodePtr modelSheet = _itemFactory.findModelSheet( modelName ); // throws + XQNodePtr modelSheet = _itemFactory.findModelSheet( modelName ); // throws // #1: über alle sections for( auto& sectionNode : modelSheet->children() ) diff --git a/xml/saved_testfile.xtr b/xml/saved_testfile.xtr index 6a12a0d..ec3e5d2 100644 --- a/xml/saved_testfile.xtr +++ b/xml/saved_testfile.xtr @@ -11,7 +11,7 @@ - +