Blob Blame History Raw
diff --git a/meshlab/src/meshlabplugins/decorate_raster_proj/decorate_raster_proj.cpp b/meshlab/src/meshlabplugins/decorate_raster_proj/decorate_raster_proj.cpp
index 4864214..21765d7 100644
--- a/meshlab/src/meshlabplugins/decorate_raster_proj/decorate_raster_proj.cpp
+++ b/meshlab/src/meshlabplugins/decorate_raster_proj/decorate_raster_proj.cpp
@@ -526,7 +526,7 @@ bool DecorateRasterProjPlugin::startDecorate( QAction          *act,
             GLenum err = glewInit();
             if( err != GLEW_OK )
             {
-                qWarning( (std::string("Impossible to load GLEW library.")+(char*)glewGetErrorString(err)).c_str() );
+                qWarning("Impossible to load GLEW library. %s",(const char *)glewGetErrorString(err));
                 return false;
             }
             Log( "GLEW library correctly initialized." );
@@ -536,7 +536,7 @@ bool DecorateRasterProjPlugin::startDecorate( QAction          *act,
             std::string logs;
             if( !initShaders(logs) )
             {
-                qWarning( ("Error while initializing shaders.\n"+logs).c_str() );
+                qWarning( "Error while initializing shaders. :%s\n",logs.c_str());
                 return false;
             }
             Log( "Shaders correctly loaded." );
diff --git a/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.cpp b/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.cpp
index 88b6f9f..9f23866 100644
--- a/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.cpp
+++ b/meshlab/src/meshlabplugins/edit_arc3D/edit_arc3D.cpp
@@ -269,7 +269,7 @@ void EditArc3DPlugin::ExportPly()
 					QString suffix = "." + qfInfo.completeSuffix();
 					QString path = qfInfo.absoluteFilePath().remove(suffix);
 					path.append("Undist" + suffix);
-					qDebug(path.toLatin1());
+					qDebug("%s", path.toLatin1().constData());
 
 					QImage undistImg(originalImg.width(),originalImg.height(),originalImg.format()); 
 					undistImg.fill(qRgba(0,0,0,255));