Skip to content

Commit

Permalink
Fix SkipEmptyParts
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Jan 4, 2024
1 parent f4287be commit 9d22e0e
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,13 @@ PdmObjectHandle* PdmReferenceHelper::objectFromFieldReference( PdmFieldHandle* f
if ( reference.isEmpty() ) return nullptr;
if ( reference.trimmed().isEmpty() ) return nullptr;

QStringList decodedReference = reference.split( QRegularExpression( "\\s+" ), QString::SkipEmptyParts );
#if ( QT_VERSION < QT_VERSION_CHECK( 5, 14, 0 ) )
auto SkipEmptyParts = QString::SkipEmptyParts;
#else
auto SkipEmptyParts = Qt::SkipEmptyParts;
#endif

QStringList decodedReference = reference.split( QRegularExpression( "\\s+" ), SkipEmptyParts );
PdmObjectHandle* lastCommonAnchestor = fromField->ownerObject();
CAF_ASSERT( lastCommonAnchestor );

Expand Down

0 comments on commit 9d22e0e

Please sign in to comment.