mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
fix warnings and extra semicolons
This commit is contained in:
parent
dc93261ce5
commit
198d8fe58f
@ -73,6 +73,10 @@ for f in "$@"; do
|
||||
cmd=:
|
||||
;;
|
||||
|
||||
python/ext-libs/*)
|
||||
cmd=:
|
||||
;;
|
||||
|
||||
*.py|*.sip)
|
||||
cmd="perl -i.prepare -pe 's/[\r\t ]+$//;'"
|
||||
;;
|
||||
|
@ -42,7 +42,7 @@ class ANALYSIS_EXPORT QgsGraphDirector : public QObject
|
||||
|
||||
public:
|
||||
//! Destructor
|
||||
virtual ~QgsGraphDirector() { };
|
||||
virtual ~QgsGraphDirector() { }
|
||||
|
||||
/**
|
||||
* Make a graph using RgGraphBuilder
|
||||
|
@ -700,19 +700,19 @@ void QgsPluginManager::showPluginDetails( QStandardItem * item )
|
||||
html += QString( "<table bgcolor=\"#FFFFAA\" cellspacing=\"2\" cellpadding=\"6\" width=\"100%\">"
|
||||
" <tr><td width=\"100%\" style=\"color:#880000\"><b>%1</b></td></tr>"
|
||||
"</table>" ).arg( tr( "There is a new version available" ) );
|
||||
};
|
||||
}
|
||||
if ( metadata->value( "status" ) == "new" )
|
||||
{
|
||||
html += QString( "<table bgcolor=\"#CCFFCC\" cellspacing=\"2\" cellpadding=\"6\" width=\"100%\">"
|
||||
" <tr><td width=\"100%\" style=\"color:#008800\"><b>%1</b></td></tr>"
|
||||
"</table>" ).arg( tr( "This is a new plugin" ) );
|
||||
};
|
||||
}
|
||||
if ( metadata->value( "status" ) == "newer" )
|
||||
{
|
||||
html += QString( "<table bgcolor=\"#FFFFCC\" cellspacing=\"2\" cellpadding=\"6\" width=\"100%\">"
|
||||
" <tr><td width=\"100%\" style=\"color:#550000\"><b>%1</b></td></tr>"
|
||||
"</table>" ).arg( tr( "Installed version of this plugin is higher than any version found in repository" ) );
|
||||
};
|
||||
}
|
||||
if ( metadata->value( "experimental" ) == "true" )
|
||||
{
|
||||
html += QString( "<table bgcolor=\"#EEEEBB\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">"
|
||||
@ -720,7 +720,7 @@ void QgsPluginManager::showPluginDetails( QStandardItem * item )
|
||||
" <img src=\"qrc:/images/themes/default/pluginExperimental.png\" width=\"32\"><b>%1</b>"
|
||||
" </td></tr>"
|
||||
"</table>" ).arg( tr( "This plugin is experimental" ) );
|
||||
};
|
||||
}
|
||||
if ( metadata->value( "deprecated" ) == "true" )
|
||||
{
|
||||
html += QString( "<table bgcolor=\"#EEBBCC\" cellspacing=\"2\" cellpadding=\"2\" width=\"100%\">"
|
||||
@ -728,7 +728,7 @@ void QgsPluginManager::showPluginDetails( QStandardItem * item )
|
||||
" <img src=\"qrc:/images/themes/default/pluginDeprecated.png\" width=\"32\"><b>%1</b>"
|
||||
" </td></tr>"
|
||||
"</table>" ).arg( tr( "This plugin is deprecated" ) );
|
||||
};
|
||||
}
|
||||
|
||||
// Now the metadata
|
||||
|
||||
|
@ -151,13 +151,13 @@ void QgsDecorationScaleBar::render( QPainter * theQPainter )
|
||||
{
|
||||
myScaleBarWidth = myCanvasWidth / 4.0; // pixels
|
||||
myActualSize = myScaleBarWidth * myMapUnitsPerPixelDouble; // map units
|
||||
};
|
||||
}
|
||||
|
||||
//if scale bar is more than half the canvas wide keep halving until not
|
||||
while ( myScaleBarWidth > myCanvasWidth / 3.0 )
|
||||
{
|
||||
myScaleBarWidth = myScaleBarWidth / 3;
|
||||
};
|
||||
}
|
||||
myActualSize = myScaleBarWidth * myMapUnitsPerPixelDouble;
|
||||
|
||||
// Work out the exponent for the number - e.g, 1234 will give 3,
|
||||
@ -235,7 +235,7 @@ void QgsDecorationScaleBar::render( QPainter * theQPainter )
|
||||
myScaleBarUnitLabel = tr( " unknown" );
|
||||
default:
|
||||
QgsDebugMsg( QString( "Error: not picked up map units - actual value = %1" ).arg( myMapUnits ) );
|
||||
};
|
||||
}
|
||||
|
||||
//Set font and calculate width of unit label
|
||||
int myFontSize = 10; //we use this later for buffering
|
||||
|
@ -35,6 +35,8 @@ bool QgsLayerDefinition::loadLayerDefinition( const QString &path, QgsLayerTreeG
|
||||
|
||||
bool QgsLayerDefinition::loadLayerDefinition( QDomDocument doc, QgsLayerTreeGroup *rootGroup, QString &errorMessage )
|
||||
{
|
||||
Q_UNUSED( errorMessage );
|
||||
|
||||
QgsLayerTreeGroup* root = new QgsLayerTreeGroup;
|
||||
// We have to replace the IDs before we load them because it's too late once they are loaded
|
||||
QDomNodeList ids = doc.elementsByTagName( "id" );
|
||||
|
@ -272,7 +272,7 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
|
||||
Q_UNUSED( thePyramidList ); Q_UNUSED( theResamplingMethod );
|
||||
Q_UNUSED( theFormat ); Q_UNUSED( theConfigOptions );
|
||||
return "FAILED_NOT_SUPPORTED";
|
||||
};
|
||||
}
|
||||
|
||||
/** \brief Accessor for ths raster layers pyramid list.
|
||||
* @param overviewList used to construct the pyramid list (optional), when empty the list is defined by the provider.
|
||||
@ -282,7 +282,7 @@ class CORE_EXPORT QgsRasterDataProvider : public QgsDataProvider, public QgsRast
|
||||
* list.
|
||||
*/
|
||||
virtual QList<QgsRasterPyramid> buildPyramidList( QList<int> overviewList = QList<int>() )
|
||||
{ Q_UNUSED( overviewList ); return QList<QgsRasterPyramid>(); };
|
||||
{ Q_UNUSED( overviewList ); return QList<QgsRasterPyramid>(); }
|
||||
|
||||
/** \brief Returns true if raster has at least one populated histogram. */
|
||||
bool hasPyramids();
|
||||
|
@ -74,8 +74,8 @@ CoordinateCapture::CoordinateCapture( QgisInterface * theQgisInterface )
|
||||
, mypUserCrsToolButton( NULL )
|
||||
, mypCRSLabel( NULL )
|
||||
, mCanvasDisplayPrecision( 5 )
|
||||
, mQGisIface( theQgisInterface )
|
||||
, mUserCrsDisplayPrecision( 5 )
|
||||
, mQGisIface( theQgisInterface )
|
||||
, mQActionPointer( NULL )
|
||||
{
|
||||
}
|
||||
|
@ -122,17 +122,17 @@ GlobePlugin::GlobePlugin( QgisInterface* theQgisInterface )
|
||||
, mQActionUnload( 0 )
|
||||
, mOsgViewer( 0 )
|
||||
, mViewerWidget( 0 )
|
||||
, mRootNode( 0 )
|
||||
, mMapNode( 0 )
|
||||
, mBaseLayer( 0 )
|
||||
, mQgisMapLayer( 0 )
|
||||
, mTileSource( 0 )
|
||||
, mControlCanvas( 0 )
|
||||
, mElevationManager( 0 )
|
||||
, mObjectPlacer( 0 )
|
||||
, mControlCanvas( 0 )
|
||||
, mSelectedLat( 0. )
|
||||
, mSelectedLon( 0. )
|
||||
, mSelectedElevation( 0. )
|
||||
, mRootNode( 0 )
|
||||
{
|
||||
mIsGlobeRunning = false;
|
||||
//needed to be "seen" by other plugins by doing
|
||||
|
@ -286,9 +286,9 @@ QgsGrassModuleOptions::QgsGrassModuleOptions(
|
||||
: mIface( iface )
|
||||
, mTools( tools )
|
||||
, mModule( module )
|
||||
, mDirect( direct )
|
||||
, mParent( 0 )
|
||||
, mRegionModeComboBox( 0 )
|
||||
, mDirect( direct )
|
||||
{
|
||||
QgsDebugMsg( "called." );
|
||||
|
||||
|
@ -67,13 +67,13 @@ bool QgsGrassUtils::itemExists( QString element, QString item )
|
||||
|
||||
QgsGrassElementDialog::QgsGrassElementDialog( QWidget *parent )
|
||||
: QObject()
|
||||
, mParent( parent )
|
||||
, mDialog( 0 )
|
||||
, mLineEdit( 0 )
|
||||
, mLabel( 0 )
|
||||
, mErrorLabel( 0 )
|
||||
, mOkButton( 0 )
|
||||
, mCancelButton( 0 )
|
||||
, mParent( parent )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -68,8 +68,8 @@ static const QString sPluginIcon = ":/heatmap/heatmap.png";
|
||||
*/
|
||||
Heatmap::Heatmap( QgisInterface * theQgisInterface )
|
||||
: QgisPlugin( sName, sDescription, sCategory, sPluginVersion, sPluginType )
|
||||
, mQGisIface( theQgisInterface )
|
||||
, mDecay( 1. )
|
||||
, mQGisIface( theQgisInterface )
|
||||
, mQActionPointer( 0 )
|
||||
{
|
||||
}
|
||||
|
@ -8,7 +8,8 @@
|
||||
namespace QTest
|
||||
{
|
||||
template<>
|
||||
char* toString( const QgsRectangle& r ) {
|
||||
char* toString( const QgsRectangle& r )
|
||||
{
|
||||
QByteArray ba = r.toString().toLocal8Bit();
|
||||
return qstrdup( ba.data() );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user