diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-07-31 17:30:57 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-08-01 09:53:05 +0200 |
commit | fc7d7799b279d2c1fc2019966604f04e36218470 (patch) | |
tree | 46e247bae48639b8110a7e08e1267524b2b4aeaf /examples/serialport/creaderasync | |
parent | 126809f150f03ab07b94bb508c89cea25440ac41 (diff) |
Fix Qt6 build
Change-Id: I6fdfe8b21efe92ba97b7c833997432e670e5937c
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'examples/serialport/creaderasync')
-rw-r--r-- | examples/serialport/creaderasync/main.cpp | 4 | ||||
-rw-r--r-- | examples/serialport/creaderasync/serialportreader.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/serialport/creaderasync/main.cpp b/examples/serialport/creaderasync/main.cpp index 6c669ceb..5e98bde3 100644 --- a/examples/serialport/creaderasync/main.cpp +++ b/examples/serialport/creaderasync/main.cpp @@ -66,7 +66,7 @@ int main(int argc, char *argv[]) if (argumentCount == 1) { standardOutput << QObject::tr("Usage: %1 <serialportname> [baudrate]") .arg(argumentList.first()) - << endl; + << Qt::endl; return 1; } @@ -82,7 +82,7 @@ int main(int argc, char *argv[]) standardOutput << QObject::tr("Failed to open port %1, error: %2") .arg(serialPortName) .arg(serialPort.errorString()) - << endl; + << Qt::endl; return 1; } diff --git a/examples/serialport/creaderasync/serialportreader.cpp b/examples/serialport/creaderasync/serialportreader.cpp index a701839b..dd683d59 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; + << Qt::endl; } else { m_standardOutput << QObject::tr("Data successfully received from port %1") .arg(m_serialPort->portName()) - << endl; - m_standardOutput << m_readData << endl; + << Qt::endl; + m_standardOutput << m_readData << Qt::endl; } 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; + << Qt::endl; QCoreApplication::exit(1); } } |