summaryrefslogtreecommitdiff
path: root/examples/serialport/cwriterasync/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/serialport/cwriterasync/main.cpp')
-rw-r--r--examples/serialport/cwriterasync/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/serialport/cwriterasync/main.cpp b/examples/serialport/cwriterasync/main.cpp
index 4d65e0a..763b18a 100644
--- a/examples/serialport/cwriterasync/main.cpp
+++ b/examples/serialport/cwriterasync/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;
+ .arg(argumentList.first()) << Qt::endl;
return 1;
}
@@ -82,7 +82,7 @@ int main(int argc, char *argv[])
QFile dataFile;
if (!dataFile.open(stdin, QIODevice::ReadOnly)) {
- standardOutput << QObject::tr("Failed to open stdin for reading") << endl;
+ standardOutput << QObject::tr("Failed to open stdin for reading") << Qt::endl;
return 1;
}
@@ -93,7 +93,7 @@ int main(int argc, char *argv[])
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;
+ .arg(serialPortName).arg(serialPort.errorString()) << Qt::endl;
return 1;
}