diff options
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..8fc43577 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; + << "\n"; 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; + << "\n"; return 1; } 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); } } |