mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Uninitialized variable fixes
This commit is contained in:
parent
ba7f0c7ee1
commit
c253a9f623
@ -21,6 +21,7 @@ QgsVertexEntry::QgsVertexEntry( QgsMapCanvas *canvas, QgsMapLayer *layer, QgsPoi
|
||||
, mEquals( -1 )
|
||||
, mInRubberBand( false )
|
||||
, mRubberBandNr( 0 )
|
||||
, mRubberBandIndex( 0 )
|
||||
, mPenWidth( penWidth )
|
||||
, mToolTip( tooltip )
|
||||
, mType( type )
|
||||
|
@ -62,7 +62,7 @@ class APP_EXPORT QgsDecorationNorthArrow: public QgsDecorationItem
|
||||
|
||||
// The amount of rotation for the north arrow
|
||||
int mRotationInt;
|
||||
int pluginType;
|
||||
|
||||
//! enable or disable the automatic setting of the arrow direction
|
||||
bool mAutomatic;
|
||||
// The placement index and translated text
|
||||
|
@ -39,6 +39,7 @@
|
||||
|
||||
QgsDiagramProperties::QgsDiagramProperties( QgsVectorLayer* layer, QWidget* parent )
|
||||
: QWidget( parent )
|
||||
, mAvailableAttributes( 0 )
|
||||
{
|
||||
mLayer = layer;
|
||||
|
||||
|
@ -21,7 +21,9 @@
|
||||
#include <cmath>
|
||||
|
||||
QgsDisplayAngle::QgsDisplayAngle( QgsMapToolMeasureAngle * tool, Qt::WindowFlags f )
|
||||
: QDialog( tool->canvas()->topLevelWidget(), f ), mTool( tool )
|
||||
: QDialog( tool->canvas()->topLevelWidget(), f )
|
||||
, mTool( tool )
|
||||
, mValue( 0.0 )
|
||||
{
|
||||
setupUi( this );
|
||||
}
|
||||
|
@ -70,8 +70,6 @@ class APP_EXPORT QgsFieldCalculator: public QDialog, private Ui::QgsFieldCalcula
|
||||
|
||||
/**idx of changed attribute*/
|
||||
int mAttributeId;
|
||||
|
||||
bool mExpressionValid;
|
||||
};
|
||||
|
||||
#endif // QGSFIELDCALCULATOR_H
|
||||
|
@ -46,7 +46,11 @@
|
||||
|
||||
|
||||
QgsLabelingGui::QgsLabelingGui( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas, QWidget* parent )
|
||||
: QWidget( parent ), mLayer( layer ), mMapCanvas( mapCanvas )
|
||||
: QWidget( parent )
|
||||
, mLayer( layer )
|
||||
, mMapCanvas( mapCanvas )
|
||||
, mMinPixelLimit( 0 )
|
||||
, mLoadSvgParams( false )
|
||||
{
|
||||
if ( !layer )
|
||||
return;
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
QgsLoadStyleFromDBDialog::QgsLoadStyleFromDBDialog( QWidget *parent )
|
||||
: QDialog( parent )
|
||||
, mSectionLimit( 0 )
|
||||
{
|
||||
setupUi( this );
|
||||
setWindowTitle( "Load style from database" );
|
||||
|
@ -29,6 +29,7 @@ QgsMapToolOffsetCurve::QgsMapToolOffsetCurve( QgsMapCanvas* canvas )
|
||||
: QgsMapToolEdit( canvas )
|
||||
, mRubberBand( 0 )
|
||||
, mOriginalGeometry( 0 )
|
||||
, mModifiedFeature( -1 )
|
||||
, mGeometryModified( false )
|
||||
, mDistanceItem( 0 )
|
||||
, mDistanceSpinBox( 0 )
|
||||
|
@ -29,11 +29,15 @@
|
||||
|
||||
#define PI 3.14159265
|
||||
|
||||
QgsMapToolRotateFeature::QgsMapToolRotateFeature( QgsMapCanvas* canvas ): QgsMapToolEdit( canvas ), mRubberBand( 0 )
|
||||
QgsMapToolRotateFeature::QgsMapToolRotateFeature( QgsMapCanvas* canvas )
|
||||
: QgsMapToolEdit( canvas )
|
||||
, mRubberBand( 0 )
|
||||
, mRotation( 0 )
|
||||
, mRotationOffset( 0 )
|
||||
, mAnchorPoint( 0 )
|
||||
, mCtrl( false )
|
||||
{
|
||||
mRotation = 0;
|
||||
mAnchorPoint = 0;
|
||||
mCtrl = false;
|
||||
|
||||
}
|
||||
|
||||
QgsMapToolRotateFeature::~QgsMapToolRotateFeature()
|
||||
|
@ -27,7 +27,14 @@
|
||||
#include "qgisapp.h"
|
||||
#include "qgsapplication.h"
|
||||
|
||||
QgsMapToolRotateLabel::QgsMapToolRotateLabel( QgsMapCanvas* canvas ): QgsMapToolLabel( canvas ), mRotationItem( 0 ), mRotationPreviewBox( 0 )
|
||||
QgsMapToolRotateLabel::QgsMapToolRotateLabel( QgsMapCanvas* canvas )
|
||||
: QgsMapToolLabel( canvas )
|
||||
, mStartRotation( 0.0 )
|
||||
, mCurrentRotation( 0.0 )
|
||||
, mCurrentMouseAzimuth( 0.0 )
|
||||
, mRotationItem( 0 )
|
||||
, mRotationPreviewBox( 0 )
|
||||
, mCtrlPressed( false )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,7 @@ email : jpalmer at linz dot govt dot nz
|
||||
|
||||
QgsMapToolSelectFreehand::QgsMapToolSelectFreehand( QgsMapCanvas* canvas )
|
||||
: QgsMapTool( canvas )
|
||||
, mDragging( false )
|
||||
{
|
||||
mRubberBand = 0;
|
||||
mCursor = Qt::ArrowCursor;
|
||||
|
@ -29,6 +29,7 @@
|
||||
|
||||
QgsMapToolShowHideLabels::QgsMapToolShowHideLabels( QgsMapCanvas* canvas )
|
||||
: QgsMapToolLabel( canvas )
|
||||
, mDragging( false )
|
||||
{
|
||||
mToolName = tr( "Show/hide labels" );
|
||||
mRubberBand = 0;
|
||||
|
@ -33,6 +33,7 @@
|
||||
|
||||
QgsMeasureTool::QgsMeasureTool( QgsMapCanvas* canvas, bool measureArea )
|
||||
: QgsMapTool( canvas )
|
||||
, mWrongProjectProjection( false )
|
||||
{
|
||||
mMeasureArea = measureArea;
|
||||
|
||||
|
@ -17,14 +17,20 @@
|
||||
#include <QPainter>
|
||||
#include <cmath>
|
||||
|
||||
QgsPointRotationItem::QgsPointRotationItem( QgsMapCanvas* canvas ): QgsMapCanvasItem( canvas ), mOrientation( Clockwise ), mRotation( 0.0 )
|
||||
QgsPointRotationItem::QgsPointRotationItem( QgsMapCanvas* canvas )
|
||||
: QgsMapCanvasItem( canvas )
|
||||
, mOrientation( Clockwise )
|
||||
, mRotation( 0.0 )
|
||||
{
|
||||
//setup font
|
||||
mFont.setPointSize( 12 );
|
||||
mFont.setBold( true );
|
||||
}
|
||||
|
||||
QgsPointRotationItem::QgsPointRotationItem(): QgsMapCanvasItem( 0 ), mRotation( 0.0 )
|
||||
QgsPointRotationItem::QgsPointRotationItem()
|
||||
: QgsMapCanvasItem( 0 )
|
||||
, mOrientation( Clockwise )
|
||||
, mRotation( 0.0 )
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -316,6 +316,7 @@ QgsDxfExport::QgsDxfExport()
|
||||
}
|
||||
|
||||
QgsDxfExport::QgsDxfExport( const QgsDxfExport& dxfExport )
|
||||
: mModelSpaceBR( 0 )
|
||||
{
|
||||
*this = dxfExport;
|
||||
}
|
||||
|
@ -62,8 +62,25 @@
|
||||
namespace pal
|
||||
{
|
||||
Feature::Feature( Layer* l, const char* geom_id, PalGeometry* userG, double lx, double ly )
|
||||
: layer( l ), userGeom( userG ), label_x( lx ), label_y( ly ), distlabel( 0 ), labelInfo( NULL ), fixedPos( false ),
|
||||
quadOffset( false ), offsetPos( false ), fixedRotation( false ), alwaysShow( false )
|
||||
: layer( l )
|
||||
, userGeom( userG )
|
||||
, label_x( lx )
|
||||
, label_y( ly )
|
||||
, distlabel( 0 )
|
||||
, labelInfo( NULL )
|
||||
, fixedPos( false )
|
||||
, fixedPosX( 0.0 )
|
||||
, fixedPosY( 0.0 )
|
||||
, quadOffset( false )
|
||||
, quadOffsetX( 0.0 )
|
||||
, quadOffsetY( 0.0 )
|
||||
, offsetPos( false )
|
||||
, offsetPosX( 0.0 )
|
||||
, offsetPosY( 0.0 )
|
||||
, fixedRotation( false )
|
||||
, fixedAngle( 0.0 )
|
||||
, repeatDist( 0.0 )
|
||||
, alwaysShow( false )
|
||||
{
|
||||
assert( finite( lx ) && finite( ly ) );
|
||||
|
||||
|
@ -55,7 +55,7 @@
|
||||
namespace pal
|
||||
{
|
||||
LabelPosition::LabelPosition( int id, double x1, double y1, double w, double h, double alpha, double cost, FeaturePart *feature, bool isReversed )
|
||||
: id( id ), cost( cost ), feature( feature ), nbOverlap( 0 ), alpha( alpha ), w( w ), h( h ), nextPart( NULL ), partId( -1 ), reversed( isReversed ), upsideDown( false )
|
||||
: id( id ), cost( cost ), feature( feature ), probFeat( 0 ), nbOverlap( 0 ), alpha( alpha ), w( w ), h( h ), nextPart( NULL ), partId( -1 ), reversed( isReversed ), upsideDown( false )
|
||||
{
|
||||
|
||||
// alpha take his value bw 0 and 2*pi rad
|
||||
@ -165,6 +165,7 @@ namespace pal
|
||||
nextPart = NULL;
|
||||
partId = other.partId;
|
||||
upsideDown = other.upsideDown;
|
||||
reversed = other.reversed;
|
||||
}
|
||||
|
||||
bool LabelPosition::isIn( double *bbox )
|
||||
|
@ -133,9 +133,6 @@ namespace pal
|
||||
|
||||
SimpleMutex *lyrsMutex;
|
||||
|
||||
// TODO remove after tests !!!
|
||||
clock_t tmpTime;
|
||||
|
||||
Units map_unit;
|
||||
|
||||
/**
|
||||
|
@ -36,7 +36,7 @@ class CORE_EXPORT QgsErrorMessage
|
||||
Html
|
||||
};
|
||||
|
||||
QgsErrorMessage() {}
|
||||
QgsErrorMessage() : mLine( 0 ), mFormat( Text ) {}
|
||||
|
||||
/** Constructor.
|
||||
* @param theMessage error message string
|
||||
|
@ -49,6 +49,7 @@ QgsFeatureRequest::QgsFeatureRequest( const QgsRectangle& rect )
|
||||
|
||||
QgsFeatureRequest::QgsFeatureRequest( const QgsExpression& expr )
|
||||
: mFilter( FilterExpression )
|
||||
, mFilterFid( -1 )
|
||||
, mFilterExpression( new QgsExpression( expr.expression() ) )
|
||||
, mFlags( 0 )
|
||||
{
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include <QDebug>
|
||||
|
||||
QgsMultiRenderChecker::QgsMultiRenderChecker()
|
||||
: mColorTolerance( 0 )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -32,13 +32,13 @@ class CORE_EXPORT QgsProjectVersion
|
||||
|
||||
public:
|
||||
|
||||
QgsProjectVersion() {};
|
||||
~QgsProjectVersion() {};
|
||||
QgsProjectVersion() : mMajor( 0 ), mMinor( 0 ), mSub( 0 ) {}
|
||||
~QgsProjectVersion() {}
|
||||
QgsProjectVersion( int major, int minor, int sub, QString name = "" );
|
||||
QgsProjectVersion( QString string );
|
||||
int majorVersion() { return mMajor;};
|
||||
int minorVersion() { return mMinor;};
|
||||
int subVersion() { return mSub;};
|
||||
int majorVersion() { return mMajor;}
|
||||
int minorVersion() { return mMinor;}
|
||||
int subVersion() { return mSub;}
|
||||
QString text();
|
||||
|
||||
/*! Boolean equal operator
|
||||
|
@ -27,12 +27,14 @@
|
||||
|
||||
QgsSnapper::QgsSnapper( QgsMapRenderer* mapRenderer )
|
||||
: mMapSettings( mapRenderer->mapSettings() )
|
||||
, mSnapMode( SnapWithOneResult )
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
QgsSnapper::QgsSnapper( const QgsMapSettings& mapSettings )
|
||||
: mMapSettings( mapSettings )
|
||||
, mSnapMode( SnapWithOneResult )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -88,6 +88,7 @@ QgsFeatureIterator QgsVectorLayerFeatureSource::getFeatures( const QgsFeatureReq
|
||||
QgsVectorLayerFeatureIterator::QgsVectorLayerFeatureIterator( QgsVectorLayerFeatureSource* source, bool ownSource, const QgsFeatureRequest& request )
|
||||
: QgsAbstractFeatureIteratorFromSource<QgsVectorLayerFeatureSource>( source, ownSource, request )
|
||||
, mEditGeometrySimplifier( 0 )
|
||||
, mFetchedFid( false )
|
||||
{
|
||||
|
||||
// prepare joins: may add more attributes to fetch (in order to allow join)
|
||||
|
@ -92,7 +92,6 @@ class QgsVectorLayerRenderer : public QgsMapLayerRenderer
|
||||
|
||||
QgsFeatureRendererV2 *mRendererV2;
|
||||
|
||||
bool mCacheFeatures;
|
||||
QgsGeometryCache* mCache;
|
||||
|
||||
bool mDrawVertexMarkers;
|
||||
|
@ -42,7 +42,7 @@ class CORE_EXPORT QgsColorRampShader : public QgsRasterShaderFunction
|
||||
struct ColorRampItem
|
||||
{
|
||||
//! default constructor
|
||||
ColorRampItem() {}
|
||||
ColorRampItem() : value( 0 ) {}
|
||||
//! convenience constructor
|
||||
ColorRampItem( double val, QColor col, QString lbl = QString() ) : label( lbl ), value( val ), color( col ) {}
|
||||
|
||||
|
@ -59,6 +59,7 @@ class CORE_EXPORT QgsRasterBandStats
|
||||
elementCount = 0;
|
||||
width = 0;
|
||||
height = 0;
|
||||
bandNumber = 1;
|
||||
}
|
||||
|
||||
/*! Compares region, size etc. not collected statistics */
|
||||
|
@ -31,6 +31,7 @@
|
||||
#include <QSettings> // for legend
|
||||
|
||||
QgsRendererCategoryV2::QgsRendererCategoryV2()
|
||||
: mRender( true )
|
||||
{
|
||||
}
|
||||
|
||||
@ -147,6 +148,8 @@ QgsCategorizedSymbolRendererV2::QgsCategorizedSymbolRendererV2( QString attrName
|
||||
, mCategories( categories )
|
||||
, mInvertedColorRamp( false )
|
||||
, mScaleMethod( DEFAULT_SCALE_METHOD )
|
||||
, mAttrNum( -1 )
|
||||
, mCounting( false )
|
||||
{
|
||||
for ( int i = 0; i < mCategories.count(); ++i )
|
||||
{
|
||||
|
@ -1546,7 +1546,11 @@ QgsMapUnitScale QgsShapeburstFillSymbolLayerV2::mapUnitScale() const
|
||||
|
||||
//QgsImageFillSymbolLayer
|
||||
|
||||
QgsImageFillSymbolLayer::QgsImageFillSymbolLayer(): mOutlineWidth( 0.0 ), mOutlineWidthUnit( QgsSymbolV2::MM ), mOutline( 0 )
|
||||
QgsImageFillSymbolLayer::QgsImageFillSymbolLayer()
|
||||
: mNextAngle( 0.0 )
|
||||
, mOutlineWidth( 0.0 )
|
||||
, mOutlineWidthUnit( QgsSymbolV2::MM )
|
||||
, mOutline( 0 )
|
||||
{
|
||||
setSubSymbol( new QgsLineSymbolV2() );
|
||||
}
|
||||
@ -2251,8 +2255,16 @@ void QgsSVGFillSymbolLayer::setDefaultSvgParams()
|
||||
}
|
||||
|
||||
|
||||
QgsLinePatternFillSymbolLayer::QgsLinePatternFillSymbolLayer(): QgsImageFillSymbolLayer(), mDistanceUnit( QgsSymbolV2::MM ), mLineWidthUnit( QgsSymbolV2::MM ),
|
||||
mOffsetUnit( QgsSymbolV2::MM ), mFillLineSymbol( 0 )
|
||||
QgsLinePatternFillSymbolLayer::QgsLinePatternFillSymbolLayer()
|
||||
: QgsImageFillSymbolLayer()
|
||||
, mDistance( 5.0 )
|
||||
, mDistanceUnit( QgsSymbolV2::MM )
|
||||
, mLineWidth( 0 )
|
||||
, mLineWidthUnit( QgsSymbolV2::MM )
|
||||
, mLineAngle( 45.0 )
|
||||
, mOffset( 0.0 )
|
||||
, mOffsetUnit( QgsSymbolV2::MM )
|
||||
, mFillLineSymbol( 0 )
|
||||
{
|
||||
setSubSymbol( new QgsLineSymbolV2() );
|
||||
QgsImageFillSymbolLayer::setSubSymbol( 0 ); //no outline
|
||||
|
@ -38,6 +38,7 @@ QgsRendererRangeV2::QgsRendererRangeV2()
|
||||
, mUpperValue( 0 )
|
||||
, mSymbol( 0 )
|
||||
, mLabel()
|
||||
, mRender( true )
|
||||
{
|
||||
}
|
||||
|
||||
@ -284,6 +285,9 @@ QgsGraduatedSymbolRendererV2::QgsGraduatedSymbolRendererV2( QString attrName, Qg
|
||||
, mMode( Custom )
|
||||
, mInvertedColorRamp( false )
|
||||
, mScaleMethod( DEFAULT_SCALE_METHOD )
|
||||
, mAttrNum( -1 )
|
||||
, mCounting( false )
|
||||
|
||||
{
|
||||
// TODO: check ranges for sanity (NULL symbols, invalid ranges)
|
||||
}
|
||||
|
@ -63,6 +63,7 @@ QgsSimpleMarkerSymbolLayerV2::QgsSimpleMarkerSymbolLayerV2( QString name, QColor
|
||||
mOffsetUnit = QgsSymbolV2::MM;
|
||||
mAngleExpression = NULL;
|
||||
mNameExpression = NULL;
|
||||
mUsingCache = false;
|
||||
}
|
||||
|
||||
QgsSymbolLayerV2* QgsSimpleMarkerSymbolLayerV2::create( const QgsStringMap& props )
|
||||
|
@ -33,6 +33,7 @@ QgsSingleSymbolRendererV2::QgsSingleSymbolRendererV2( QgsSymbolV2* symbol )
|
||||
: QgsFeatureRendererV2( "singleSymbol" )
|
||||
, mSymbol( symbol )
|
||||
, mScaleMethod( DEFAULT_SCALE_METHOD )
|
||||
, mOrigSize( 0.0 )
|
||||
{
|
||||
Q_ASSERT( symbol );
|
||||
}
|
||||
|
@ -212,8 +212,11 @@ void QgsSymbolLayerV2::copyDataDefinedProperties( QgsSymbolLayerV2* destLayer )
|
||||
|
||||
QgsMarkerSymbolLayerV2::QgsMarkerSymbolLayerV2( bool locked )
|
||||
: QgsSymbolLayerV2( QgsSymbolV2::Marker, locked )
|
||||
, mAngle( 0 )
|
||||
, mSize( 2.0 )
|
||||
, mSizeUnit( QgsSymbolV2::MM )
|
||||
, mOffsetUnit( QgsSymbolV2::MM )
|
||||
, mScaleMethod( QgsSymbolV2::ScaleArea )
|
||||
, mHorizontalAnchorPoint( HCenter )
|
||||
, mVerticalAnchorPoint( VCenter )
|
||||
{
|
||||
@ -224,6 +227,7 @@ QgsMarkerSymbolLayerV2::QgsMarkerSymbolLayerV2( bool locked )
|
||||
|
||||
QgsLineSymbolLayerV2::QgsLineSymbolLayerV2( bool locked )
|
||||
: QgsSymbolLayerV2( QgsSymbolV2::Line, locked )
|
||||
, mWidth( 0 )
|
||||
, mWidthUnit( QgsSymbolV2::MM )
|
||||
, mOffset( 0 )
|
||||
, mOffsetUnit( QgsSymbolV2::MM )
|
||||
|
@ -361,6 +361,7 @@ void QgsVectorRandomColorRampV2::updateColors()
|
||||
/////////////
|
||||
|
||||
QgsRandomColorsV2::QgsRandomColorsV2()
|
||||
: mTotalColorCount( 0 )
|
||||
{
|
||||
srand( QTime::currentTime().msec() );
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ QgsFeatureListView::QgsFeatureListView( QWidget *parent )
|
||||
, mFeatureSelectionModel( 0 )
|
||||
, mItemDelegate( 0 )
|
||||
, mEditSelectionDrag( false )
|
||||
, mRowAnchor( 0 )
|
||||
{
|
||||
setSelectionMode( QAbstractItemView::ExtendedSelection );
|
||||
}
|
||||
|
@ -27,6 +27,7 @@
|
||||
QgsDateTimeEdit::QgsDateTimeEdit( QWidget *parent )
|
||||
: QDateTimeEdit( parent )
|
||||
, mAllowNull( true )
|
||||
, mIsNull( true )
|
||||
{
|
||||
mClearButton = new QToolButton( this );
|
||||
mClearButton->setIcon( QgsApplication::getThemeIcon( "/mIconClear.svg" ) );
|
||||
|
@ -23,7 +23,11 @@
|
||||
#include <QPainter>
|
||||
#include <QPen>
|
||||
|
||||
QgsAnnotationItem::QgsAnnotationItem( QgsMapCanvas* mapCanvas ): QgsMapCanvasItem( mapCanvas ), mMapPositionFixed( true ), mOffsetFromReferencePoint( QPointF( 50, -50 ) )
|
||||
QgsAnnotationItem::QgsAnnotationItem( QgsMapCanvas* mapCanvas )
|
||||
: QgsMapCanvasItem( mapCanvas )
|
||||
, mMapPositionFixed( true )
|
||||
, mOffsetFromReferencePoint( QPointF( 50, -50 ) )
|
||||
, mBalloonSegment( -1 )
|
||||
{
|
||||
setFlag( QGraphicsItem::ItemIsSelectable, true );
|
||||
mMarkerSymbol = new QgsMarkerSymbolV2();
|
||||
|
@ -17,9 +17,12 @@
|
||||
|
||||
#include "qgsdetaileditemdata.h"
|
||||
QgsDetailedItemData::QgsDetailedItemData()
|
||||
: mCheckableFlag( false )
|
||||
, mCheckedFlag( false )
|
||||
, mEnabledFlag( true )
|
||||
, mRenderAsWidgetFlag( false )
|
||||
{
|
||||
mRenderAsWidgetFlag = false;
|
||||
mEnabledFlag = true;
|
||||
|
||||
}
|
||||
|
||||
QgsDetailedItemData::~QgsDetailedItemData()
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
QgsExtentGroupBox::QgsExtentGroupBox( QWidget* parent )
|
||||
: QgsCollapsibleGroupBox( parent )
|
||||
, mExtentState( OriginalExtent )
|
||||
{
|
||||
setupUi( this );
|
||||
|
||||
|
@ -32,6 +32,7 @@ QgsIdentifyMenu::QgsIdentifyMenu( QgsMapCanvas* canvas )
|
||||
, mCanvas( canvas )
|
||||
, mAllowMultipleReturn( true )
|
||||
, mExecWithSingleResult( false )
|
||||
, mShowFeatureActions( false )
|
||||
, mResultsIfExternalAction( false )
|
||||
, mMaxLayerDisplay( 10 )
|
||||
, mMaxFeatureDisplay( 10 )
|
||||
|
@ -29,6 +29,7 @@
|
||||
QgsMapCanvasItem::QgsMapCanvasItem( QgsMapCanvas* mapCanvas )
|
||||
: QGraphicsItem()
|
||||
, mMapCanvas( mapCanvas )
|
||||
, mRectRotation( 0.0 )
|
||||
, mPanningOffset( 0, 0 )
|
||||
, mItemSize( 0, 0 )
|
||||
{
|
||||
|
@ -21,6 +21,7 @@ QgsMapLayerAction::QgsMapLayerAction( QString name, QObject* parent, Targets tar
|
||||
, mSingleLayer( false )
|
||||
, mActionLayer( 0 )
|
||||
, mSpecificLayerType( false )
|
||||
, mLayerType( QgsMapLayer::VectorLayer )
|
||||
, mTargets( targets )
|
||||
{
|
||||
}
|
||||
@ -31,6 +32,7 @@ QgsMapLayerAction::QgsMapLayerAction( QString name, QObject* parent, QgsMapLayer
|
||||
, mSingleLayer( true )
|
||||
, mActionLayer( layer )
|
||||
, mSpecificLayerType( false )
|
||||
, mLayerType( QgsMapLayer::VectorLayer )
|
||||
, mTargets( targets )
|
||||
{
|
||||
}
|
||||
|
@ -60,7 +60,13 @@ QgsRubberBand::QgsRubberBand( QgsMapCanvas* mapCanvas, bool isPolygon )
|
||||
setBrushStyle( Qt::SolidPattern );
|
||||
}
|
||||
|
||||
QgsRubberBand::QgsRubberBand(): QgsMapCanvasItem( 0 )
|
||||
QgsRubberBand::QgsRubberBand()
|
||||
: QgsMapCanvasItem( 0 )
|
||||
, mIconSize( 5 )
|
||||
, mIconType( ICON_CIRCLE )
|
||||
, mGeometryType( QGis::Polygon )
|
||||
, mTranslationOffsetX( 0.0 )
|
||||
, mTranslationOffsetY( 0.0 )
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,9 @@ class TreeFilterProxyModel : public QSortFilterProxyModel
|
||||
// ----------------------
|
||||
|
||||
QgsCptCityColorRampV2Dialog::QgsCptCityColorRampV2Dialog( QgsCptCityColorRampV2* ramp, QWidget* parent )
|
||||
: QDialog( parent ), mRamp( 0 )
|
||||
: QDialog( parent )
|
||||
, mRamp( 0 )
|
||||
, mArchiveViewType( QgsCptCityBrowserModel::Selections )
|
||||
{
|
||||
setupUi( this );
|
||||
|
||||
|
@ -75,6 +75,11 @@ DL_Dxf::DL_Dxf()
|
||||
hatchEdgeIndex = NULL;
|
||||
dropEdges = false;
|
||||
|
||||
groupCode = 0;
|
||||
currentEntity = DL_Unknown;
|
||||
firstCall = true;
|
||||
libVersion = 0;
|
||||
|
||||
//bulge = 0.0;
|
||||
}
|
||||
|
||||
|
@ -1223,7 +1223,7 @@ struct DL_HatchLoopData
|
||||
/**
|
||||
* Default constructor.
|
||||
*/
|
||||
DL_HatchLoopData() {}
|
||||
DL_HatchLoopData() : numEdges( 0 ) {}
|
||||
/**
|
||||
* Constructor.
|
||||
* Parameters: see member variables.
|
||||
|
@ -37,7 +37,12 @@
|
||||
* @param parent - Pointer the to parent QWidget for modality
|
||||
* @param fl - Windown flags
|
||||
*/
|
||||
eVisImageDisplayWidget::eVisImageDisplayWidget( QWidget* parent, Qt::WindowFlags fl ) : QWidget( parent, fl )
|
||||
eVisImageDisplayWidget::eVisImageDisplayWidget( QWidget* parent, Qt::WindowFlags fl )
|
||||
: QWidget( parent, fl )
|
||||
, mCurrentHttpImageRequestId( 0 )
|
||||
, mImageSizeRatio( 0.0 )
|
||||
, mScaleFactor( 1.0 )
|
||||
, mScaleToFit( 0.0 )
|
||||
{
|
||||
//Setup zoom buttons
|
||||
pbtnZoomIn = new QPushButton();
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
QgsOfflineEditingProgressDialog::QgsOfflineEditingProgressDialog( QWidget* parent /*= 0*/, Qt::WindowFlags fl /*= 0*/ )
|
||||
: QDialog( parent, fl )
|
||||
, mProgressUpdate( 0 )
|
||||
{
|
||||
setupUi( this );
|
||||
}
|
||||
|
@ -27,6 +27,7 @@
|
||||
|
||||
QgsDelimitedTextFeatureIterator::QgsDelimitedTextFeatureIterator( QgsDelimitedTextFeatureSource* source, bool ownSource, const QgsFeatureRequest& request )
|
||||
: QgsAbstractFeatureIteratorFromSource<QgsDelimitedTextFeatureSource>( source, ownSource, request )
|
||||
, mTestGeometryExact( false )
|
||||
{
|
||||
|
||||
// Determine mode to use based on request...
|
||||
|
@ -43,6 +43,7 @@ QgsDelimitedTextFile::QgsDelimitedTextFile( QString url ) :
|
||||
mSkipLines( 0 ),
|
||||
mMaxFields( 0 ),
|
||||
mMaxNameLength( 200 ), // Don't want field names to be too unweildy!
|
||||
mAnchoredRegexp( false ),
|
||||
mLineNumber( -1 ),
|
||||
mRecordLineNumber( -1 ),
|
||||
mRecordNumber( -1 ),
|
||||
|
@ -116,6 +116,11 @@ QgsGdalProvider::QgsGdalProvider( const QString &uri, bool update )
|
||||
, QgsGdalProviderBase()
|
||||
, mUpdate( update )
|
||||
, mValid( false )
|
||||
, mHasPyramids( false )
|
||||
, mWidth( 0 )
|
||||
, mHeight( 0 )
|
||||
, mXBlockSize( 0 )
|
||||
, mYBlockSize( 0 )
|
||||
, mGdalBaseDataset( 0 )
|
||||
, mGdalDataset( 0 )
|
||||
{
|
||||
|
@ -55,6 +55,7 @@ int QgsMssqlProvider::sConnectionId = 0;
|
||||
|
||||
QgsMssqlProvider::QgsMssqlProvider( QString uri )
|
||||
: QgsVectorDataProvider( uri )
|
||||
, mNumberFeatures( 0 )
|
||||
, mCrs()
|
||||
, mWkbType( QGis::WKBUnknown )
|
||||
{
|
||||
|
@ -264,8 +264,6 @@ class QgsMssqlProvider : public QgsVectorDataProvider
|
||||
bool mUseEstimatedMetadata;
|
||||
bool mSkipFailures;
|
||||
|
||||
int mGeomType;
|
||||
|
||||
long mNumberFeatures;
|
||||
QString mFidColName;
|
||||
long mSRId;
|
||||
|
@ -266,6 +266,7 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
|
||||
, mOgrGeometryTypeFilter( wkbUnknown )
|
||||
, ogrDriver( 0 )
|
||||
, valid( false )
|
||||
, geomType( wkbUnknown )
|
||||
, featuresCounted( -1 )
|
||||
, mDataModified( false )
|
||||
, mWriteAccess( false )
|
||||
|
@ -323,8 +323,7 @@ class QgsOgrProvider : public QgsVectorDataProvider
|
||||
QString ogrDriverName;
|
||||
|
||||
bool valid;
|
||||
//! Flag to indicate that spatial intersect should be used in selecting features
|
||||
bool mUseIntersect;
|
||||
|
||||
OGRwkbGeometryType geomType;
|
||||
long featuresCounted;
|
||||
|
||||
|
@ -157,6 +157,7 @@ QgsPgSourceSelect::QgsPgSourceSelect( QWidget *parent, Qt::WindowFlags fl, bool
|
||||
, mManagerMode( managerMode )
|
||||
, mEmbeddedMode( embeddedMode )
|
||||
, mColumnTypeThread( 0 )
|
||||
, mUseEstimatedMetadata( false )
|
||||
{
|
||||
setupUi( this );
|
||||
|
||||
|
@ -30,6 +30,8 @@ const int QgsPostgresFeatureIterator::sFeatureQueueSize = 2000;
|
||||
QgsPostgresFeatureIterator::QgsPostgresFeatureIterator( QgsPostgresFeatureSource* source, bool ownSource, const QgsFeatureRequest& request )
|
||||
: QgsAbstractFeatureIteratorFromSource<QgsPostgresFeatureSource>( source, ownSource, request )
|
||||
, mFeatureQueueSize( sFeatureQueueSize )
|
||||
, mFetched( 0 )
|
||||
, mFetchGeometry( false )
|
||||
{
|
||||
if ( !source->mTransactionConnection )
|
||||
{
|
||||
|
@ -302,7 +302,6 @@ class QgsPostgresProvider : public QgsVectorDataProvider
|
||||
void repaintRequested();
|
||||
|
||||
private:
|
||||
int mProviderId; // id to append to provider specific identified (like cursors)
|
||||
|
||||
bool declareCursor( const QString &cursorName,
|
||||
const QgsAttributeList &fetchAttributes,
|
||||
|
@ -92,6 +92,8 @@ QgsWcsProvider::QgsWcsProvider( QString const &uri )
|
||||
, mCachedMemFile( 0 )
|
||||
, mCachedGdalDataset( 0 )
|
||||
, mCachedViewExtent( 0 )
|
||||
, mCachedViewWidth( 0 )
|
||||
, mCachedViewHeight( 0 )
|
||||
, mCoordinateTransform( 0 )
|
||||
, mExtentDirty( true )
|
||||
, mGetFeatureInfoUrlBase( "" )
|
||||
|
@ -64,7 +64,9 @@ QgsWFSProvider::QgsWFSProvider( const QString& uri )
|
||||
, mSourceCRS( 0 )
|
||||
, mFeatureCount( 0 )
|
||||
, mValid( true )
|
||||
, mCached( false )
|
||||
, mPendingRetrieval( false )
|
||||
, mCapabilities( 0 )
|
||||
#if 0
|
||||
, mLayer( 0 )
|
||||
, mGetRenderedOnly( false )
|
||||
|
@ -125,6 +125,8 @@ QgsBench::QgsBench( int theWidth, int theHeight, int theIterations )
|
||||
, mHeight( theHeight )
|
||||
, mIterations( theIterations )
|
||||
, mSetExtent( false )
|
||||
, mUserStart( 0.0 )
|
||||
, mSysStart( 0.0 )
|
||||
, mParallel( false )
|
||||
{
|
||||
QgsDebugMsg( "entered" );
|
||||
|
Loading…
x
Reference in New Issue
Block a user