Skip to content

Commit 348f0f7

Browse files
author
jef
committed
fix warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@9599 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 227f381 commit 348f0f7

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/core/raster/qgsrasterlayer.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ QgsRasterLayer::QgsRasterLayer(
7878
// Constant that signals property not used.
7979
QSTRING_NOT_SET( "Not Set" ),
8080
TRSTRING_NOT_SET( tr( "Not Set" ) ),
81+
mStandardDeviations( 0 ),
82+
mDataProvider( 0 ),
8183
mWidth( std::numeric_limits<int>::max() ),
8284
mHeight( std::numeric_limits<int>::max() ),
83-
mInvertColor( false ),
84-
mStandardDeviations( 0 ),
85-
mDataProvider( 0 )
85+
mInvertColor( false )
8686
{
8787

8888
mUserDefinedRGBMinimumMaximum = false; //defaults needed to bypass enhanceContrast
@@ -138,15 +138,14 @@ QgsRasterLayer::QgsRasterLayer( int dummy,
138138
QString const & format,
139139
QString const & crs )
140140
: QgsMapLayer( RasterLayer, baseName, rasterLayerPath ),
141-
mWidth( std::numeric_limits<int>::max() ),
142-
mHeight( std::numeric_limits<int>::max() ),
143-
mInvertColor( false ),
144141
mStandardDeviations( 0 ),
145-
mProviderKey( providerKey ),
146142
mDataProvider( 0 ),
147143
mEditable( false ),
148-
mModified( false )
149-
144+
mWidth( std::numeric_limits<int>::max() ),
145+
mHeight( std::numeric_limits<int>::max() ),
146+
mInvertColor( false ),
147+
mModified( false ),
148+
mProviderKey( providerKey )
150149
{
151150
QgsDebugMsg( "(8 arguments) starting. with layer list of " +
152151
layers.join( ", " ) + " and style list of " + styles.join( ", " ) + " and format of " +

0 commit comments

Comments
 (0)