]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix format-security compilation error
authorGilles DAVID <gilles-g.david@edf.fr>
Fri, 16 Jun 2023 21:23:54 +0000 (23:23 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Fri, 16 Jun 2023 21:23:54 +0000 (23:23 +0200)
src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_Selector.cxx
src/SalomeApp/SalomeApp_DataModel.cxx

index bc295796a39b85a6a4c1e3ee6908121a40de8933..bbb1d548b411dbbbc267683f1abda5bbce8d6dae 100644 (file)
@@ -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());
 }
 
 /*!
index 18893bb9cb6545b4e0a12098021ffec01a3ea8bb..69f6d360a322439463113080ca36d2a931378c31 100644 (file)
@@ -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() );
   }
 }