From 6c2cc2252466d2dd94ef6ab69e991808cfe806f2 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 3 Mar 2021 14:34:42 +0000 Subject: [PATCH] Remove unnecessary variable --- widgets/mainwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index a47792348..1bd136fa0 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -4982,10 +4982,9 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie } } else { // no grid on end of msg auto const& word_3 = message_words.at (3); - bool word_3_is_int; - auto word_3_as_number = word_3.toInt (&word_3_is_int); + auto word_3_as_number = word_3.toInt (); if (("RRR" == word_3 - || (word_3_is_int && word_3_as_number == 73) + || word_3_as_number == 73 || "RR73" == word_3 || ("R" == word_3 && m_QSOProgress != REPORT))) { if(m_mode=="FT4" and "RR73" == word_3) m_dateTimeRcvdRR73=QDateTime::currentDateTimeUtc();