diff options
author | Topi Reinio <topi.reinio@qt.io> | 2020-03-30 15:01:44 +0200 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2020-04-06 10:32:07 +0200 |
commit | ff3fd7b0330cb76772066ce7162320f4dc1a5c28 (patch) | |
tree | 7fe2f0d11e600a6d0e7d375a781c30e7e7c30045 /examples/serialport/creaderasync/serialportreader.cpp | |
parent | b30052fa41f6332f20ec440dcdbcd06b41a954f5 (diff) |
Remove deprecated QTextStream operators from examplesv5.15.0-beta4
Use '\n' instead.
Task-number: QTBUG-82532
Change-Id: I97aec4076bd46f23644099158f346a6ca32a4a0e
Reviewed-by: Topi Reiniƶ <topi.reinio@qt.io>
Diffstat (limited to 'examples/serialport/creaderasync/serialportreader.cpp')
-rw-r--r-- | examples/serialport/creaderasync/serialportreader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/serialport/creaderasync/serialportreader.cpp b/examples/serialport/creaderasync/serialportreader.cpp index a701839b..83ea53cd 100644 --- a/examples/serialport/creaderasync/serialportreader.cpp +++ b/examples/serialport/creaderasync/serialportreader.cpp @@ -78,12 +78,12 @@ void SerialPortReader::handleTimeout() m_standardOutput << QObject::tr("No data was currently available " "for reading from port %1") .arg(m_serialPort->portName()) - << endl; + << "\n"; } else { m_standardOutput << QObject::tr("Data successfully received from port %1") .arg(m_serialPort->portName()) - << endl; - m_standardOutput << m_readData << endl; + << "\n"; + m_standardOutput << m_readData << "\n"; } QCoreApplication::quit(); @@ -96,7 +96,7 @@ void SerialPortReader::handleError(QSerialPort::SerialPortError serialPortError) "the data from port %1, error: %2") .arg(m_serialPort->portName()) .arg(m_serialPort->errorString()) - << endl; + << "\n"; QCoreApplication::exit(1); } } |