From: Gilles DAVID Date: Fri, 16 Jun 2023 21:23:54 +0000 (+0200) Subject: Fix format-security compilation error X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d09acab6f636ec42ecf528e571987f624f645db1;p=modules%2Fgui.git Fix format-security compilation error --- 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() ); } }