From f5f4b1e4c8d4c6bb04ad9e7ac0a6cd21f082487a Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 10 Feb 2023 17:56:36 +0200 Subject: [PATCH] Fix math parser tests. --- src/libs/qmuparser/qmuparsertokenreader.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libs/qmuparser/qmuparsertokenreader.cpp b/src/libs/qmuparser/qmuparsertokenreader.cpp index 3f25c3f10..fbc265607 100644 --- a/src/libs/qmuparser/qmuparsertokenreader.cpp +++ b/src/libs/qmuparser/qmuparsertokenreader.cpp @@ -485,9 +485,7 @@ auto QmuParserTokenReader::IsArgSep ( token_type &a_Tok ) -> bool if ( m_strFormula.at ( m_iPos ) == m_cArgSep ) { // copy the separator into null terminated string - QString szSep; - szSep[0] = m_cArgSep; - szSep[1] = QChar::Null; + QString szSep(m_cArgSep); if ( m_iSynFlags & noARG_SEP ) {