forked from qt-creator/qt-creator
QDataStream: don't stream enums that don't have explicit operators
Change-Id: I37d93a60a0d649688bddfffd1693e6b59553ad32 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -58,16 +58,19 @@ StartProcessPacket::StartProcessPacket(quintptr token)
|
||||
|
||||
void StartProcessPacket::doSerialize(QDataStream &stream) const
|
||||
{
|
||||
stream << command << arguments << workingDir << env << processMode << writeData << channelMode
|
||||
stream << command << arguments << workingDir << env << int(processMode) << writeData << int(channelMode)
|
||||
<< standardInputFile << belowNormalPriority << nativeArguments << lowPriority
|
||||
<< unixTerminalDisabled;
|
||||
}
|
||||
|
||||
void StartProcessPacket::doDeserialize(QDataStream &stream)
|
||||
{
|
||||
stream >> command >> arguments >> workingDir >> env >> processMode >> writeData >> channelMode
|
||||
int cm, pm;
|
||||
stream >> command >> arguments >> workingDir >> env >> pm >> writeData >> cm
|
||||
>> standardInputFile >> belowNormalPriority >> nativeArguments >> lowPriority
|
||||
>> unixTerminalDisabled;
|
||||
channelMode = QProcess::ProcessChannelMode(cm);
|
||||
processMode = Utils::ProcessMode(pm);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user