From ffb6b90f48b3e64ecb626bbbf5e55a832a573eb3 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Fri, 3 Jun 2016 15:02:15 +0200 Subject: [PATCH] Fix build warnings --- src/app/qgisapp.cpp | 2 ++ src/app/qgsfieldsproperties.cpp | 1 - src/core/qgsruntimeprofiler.h | 10 ++++------ src/gui/raster/qgsrendererrasterpropertieswidget.h | 1 + 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index 36ff1637aa7..43393812a17 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -1059,6 +1059,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh QgsDebugMsg( "PROFILE TIMES" ); QgsDebugMsg( QString( "PROFILE TIMES TOTAL - %1 " ).arg( profiler->totalTime() ) ); +#ifdef QGISDEBUG QList >::const_iterator it = profiler->profileTimes().constBegin(); for ( ; it != profiler->profileTimes().constEnd(); ++it ) { @@ -1066,6 +1067,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh double time = ( *it ).second; QgsDebugMsg( QString( " - %1 - %2" ).arg( name ).arg( time ) ); } +#endif } // QgisApp ctor diff --git a/src/app/qgsfieldsproperties.cpp b/src/app/qgsfieldsproperties.cpp index 1f4deaff941..d50f9f96eaa 100644 --- a/src/app/qgsfieldsproperties.cpp +++ b/src/app/qgsfieldsproperties.cpp @@ -1146,7 +1146,6 @@ QTreeWidgetItem* DesignerTree::addItem( QTreeWidgetItem* parent, QgsFieldsProper void DesignerTree::dragMoveEvent( QDragMoveEvent *event ) { - QTreeWidgetItem* targetItem = itemAt( event->pos() ); const QMimeData* data = event->mimeData(); if ( data->hasFormat( "application/x-qgsattributetabledesignerelement" ) ) diff --git a/src/core/qgsruntimeprofiler.h b/src/core/qgsruntimeprofiler.h index b77746a1435..a3f42834a18 100644 --- a/src/core/qgsruntimeprofiler.h +++ b/src/core/qgsruntimeprofiler.h @@ -10,16 +10,14 @@ class CORE_EXPORT QgsRuntimeProfiler { public: /** - * @brief Instance of the run time profiler. To use the main profiler - * use this instance. - * @return The instance of the run time profiler + * Constructor to create a new runtime profiler. */ QgsRuntimeProfiler(); /** - * @brief Begin the group for the profiler. Groups will append {GroupName}/ to the - * front of the profile tag set using start. - * @param name The name of the group. + * @brief Instance of the run time profiler. To use the main profiler + * use this instance. + * @return The instance of the run time profiler */ static QgsRuntimeProfiler * instance(); diff --git a/src/gui/raster/qgsrendererrasterpropertieswidget.h b/src/gui/raster/qgsrendererrasterpropertieswidget.h index 6ebdecf7a9b..ab499b7b917 100644 --- a/src/gui/raster/qgsrendererrasterpropertieswidget.h +++ b/src/gui/raster/qgsrendererrasterpropertieswidget.h @@ -34,6 +34,7 @@ class GUI_EXPORT QgsRendererRasterPropertiesWidget : public QgsMapStylePanel, pr public: /** * A widget to hold the renderer properties for a raster layer. + * @param layer The raster layer to style * @param canvas The canvas object used to calculate the max and min values from the extent. * @param parent Parent object */