-- fy
This commit is contained in:
@@ -525,6 +525,12 @@ QVariant XQItem::data(int role ) const
|
||||
QVariant value = QStandardItem::data( XQItem::ContentNodeRole );
|
||||
if( !value.isNull() )
|
||||
return value;
|
||||
|
||||
// das gibt immerhin was zurück, was auf nullptr getestet werden kann,
|
||||
return QVariant::fromValue<XQNodePtr>(nullptr);
|
||||
|
||||
// diese variante erzieht uns zur verwendung von 'hasContentNode()'
|
||||
// was ist besser ?
|
||||
throw XQException( "ContentNode is nullptr!");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user