From 51d50ecf781c4ff09331fc48ec652c0156fa25eb Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Fri, 1 Sep 2017 20:43:45 +0000 Subject: [PATCH] Fix issue compiling with Qt older than v5.7 git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8063 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- decodedtext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decodedtext.cpp b/decodedtext.cpp index 184ec9d5b..da86d5212 100644 --- a/decodedtext.cpp +++ b/decodedtext.cpp @@ -43,9 +43,9 @@ DecodedText::DecodedText (QString const& the_string, bool contest_mode, QString // stdmsg is a fortran routine that packs the text, unpacks it // and compares the result auto message_c_string = message_.toLocal8Bit (); - message_c_string.append (22 - message_c_string.size (), ' '); + message_c_string += QByteArray {22 - message_c_string.size (), ' '}; auto grid_c_string = my_grid.toLocal8Bit (); - grid_c_string.append (6 - grid_c_string.size (), ' '); + grid_c_string += QByteArray {6 - grid_c_string.size (), ' '}; is_standard_ = stdmsg_ (message_c_string.constData () , contest_mode_ , grid_c_string.constData ()