From f1e51c6842bb17eb3b061b637669ee5fe1459e73 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Wed, 20 Nov 2013 06:58:30 +0000 Subject: Remove the standard input copy/paste issue from the QIODevice documentation Change-Id: I03d4be1bf7fd5670c563484759eda670c9a0cb75 Reviewed-by: Denis Shienkov Reviewed-by: Sergey Belyashov --- examples/serialport/creaderasync/serialportreader.cpp | 2 +- examples/serialport/creadersync/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/serialport/creaderasync/serialportreader.cpp b/examples/serialport/creaderasync/serialportreader.cpp index 310455c..5dd7412 100644 --- a/examples/serialport/creaderasync/serialportreader.cpp +++ b/examples/serialport/creaderasync/serialportreader.cpp @@ -72,7 +72,7 @@ void SerialPortReader::handleReadyRead() void SerialPortReader::handleTimeout() { if (m_readData.isEmpty()) { - m_standardOutput << QObject::tr("Either no data was currently available on the standard input for reading, or an error occurred for port %1, error: %2").arg(m_serialPort->portName()).arg(m_serialPort->errorString()) << endl; + m_standardOutput << QObject::tr("Either no data was currently available for reading, or an error occurred for port %1, error: %2").arg(m_serialPort->portName()).arg(m_serialPort->errorString()) << endl; QCoreApplication::exit(1); } else { m_standardOutput << QObject::tr("Data successfully received from port %1").arg(m_serialPort->portName()) << endl; diff --git a/examples/serialport/creadersync/main.cpp b/examples/serialport/creadersync/main.cpp index 856fa3d..cd10b8e 100644 --- a/examples/serialport/creadersync/main.cpp +++ b/examples/serialport/creadersync/main.cpp @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) readData.append(serialPort.readAll()); if (readData.isEmpty()) { - standardOutput << QObject::tr("Either no data was currently available on the standard input for reading, or an error occurred for port %1, error: %2").arg(serialPortName).arg(serialPort.errorString()) << endl; + standardOutput << QObject::tr("Either no data was currently available for reading, or an error occurred for port %1, error: %2").arg(serialPortName).arg(serialPort.errorString()) << endl; return 1; } -- cgit v1.2.1