summaryrefslogtreecommitdiffstats
path: root/examples/serialport/creaderasync
diff options
context:
space:
mode:
Diffstat (limited to 'examples/serialport/creaderasync')
-rw-r--r--examples/serialport/creaderasync/main.cpp4
-rw-r--r--examples/serialport/creaderasync/serialportreader.cpp8
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);
}
}