Commit db1502d0 authored by Patrick José Pereira's avatar Patrick José Pereira

UASMessageHandler: Remove empty string from QString constructor

Signed-off-by: 's avatarPatrick José Pereira <patrickelectric@gmail.com>
parent 787f477e
...@@ -149,7 +149,7 @@ void UASMessageHandler::handleTextMessage(int, int compId, int severity, QString ...@@ -149,7 +149,7 @@ void UASMessageHandler::handleTextMessage(int, int compId, int severity, QString
} }
// And determine the text for the severitie // And determine the text for the severitie
QString severityText(""); QString severityText;
switch (severity) switch (severity)
{ {
case MAV_SEVERITY_EMERGENCY: case MAV_SEVERITY_EMERGENCY:
...@@ -183,7 +183,7 @@ void UASMessageHandler::handleTextMessage(int, int compId, int severity, QString ...@@ -183,7 +183,7 @@ void UASMessageHandler::handleTextMessage(int, int compId, int severity, QString
// Finally preppend the properly-styled text with a timestamp. // Finally preppend the properly-styled text with a timestamp.
QString dateString = QDateTime::currentDateTime().toString("hh:mm:ss.zzz"); QString dateString = QDateTime::currentDateTime().toString("hh:mm:ss.zzz");
UASMessage* message = new UASMessage(compId, severity, text); UASMessage* message = new UASMessage(compId, severity, text);
QString compString(""); QString compString;
if (_multiComp) { if (_multiComp) {
compString = QString(" COMP:%1").arg(compId); compString = QString(" COMP:%1").arg(compId);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment