forked from qt-creator/qt-creator
Cast enum to the an integer type before streaming out to QDataStream
We stream in as int or as qint32, so this is symmetric. Change-Id: Ic46ff326a6ba46bc877cfffd148325c21241f3b1 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -99,8 +99,8 @@ QDataStream &operator<<(QDataStream &out, const InstanceContainer &container)
|
||||
out << container.minorNumber();
|
||||
out << container.componentPath();
|
||||
out << container.nodeSource();
|
||||
out << container.nodeSourceType();
|
||||
out << container.metaType();
|
||||
out << qint32(container.nodeSourceType());
|
||||
out << qint32(container.metaType());
|
||||
|
||||
return out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user