From d09acab6f636ec42ecf528e571987f624f645db1 Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Fri, 16 Jun 2023 23:23:54 +0200 Subject: [PATCH] Fix format-security compilation error --- src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_Selector.cxx | 2 +- src/SalomeApp/SalomeApp_DataModel.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_Selector.cxx b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_Selector.cxx index bc295796a..bbb1d548b 100644 --- a/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_Selector.cxx +++ b/src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_Selector.cxx @@ -130,7 +130,7 @@ void SALOME_PYQT_Selector::onSelectionChanged() mySelectedList.clear(); selectionChanged(); QTime t2 = QTime::currentTime(); - qDebug( QString( "selection time = %1 msecs" ).arg( t1.msecsTo( t2 ) ).toLatin1().constData()); + qDebug( "%s", QString( "selection time = %1 msecs" ).arg( t1.msecsTo( t2 ) ).toLatin1().constData()); } /*! diff --git a/src/SalomeApp/SalomeApp_DataModel.cxx b/src/SalomeApp/SalomeApp_DataModel.cxx index 18893bb9c..69f6d360a 100644 --- a/src/SalomeApp/SalomeApp_DataModel.cxx +++ b/src/SalomeApp/SalomeApp_DataModel.cxx @@ -254,7 +254,7 @@ void showTree( SUIT_DataObject* root ) { QString marg; marg.fill( ' ', 3*it.depth() ); QString nnn = "%1 '%2'"; - qDebug( nnn.arg( marg ).arg( it.current()->name() ).toUtf8() ); + qDebug( "%s", nnn.arg( marg ).arg( it.current()->name() ).toLatin1().constData() ); } } -- 2.39.2