Skip to content

Commit ec27d28

Browse files
committedJan 31, 2013
fix warnings
1 parent f8705c3 commit ec27d28

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed
 

‎src/providers/mssql/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
21
SET (MSSQL_SRCS qgsmssqlprovider.cpp qgsmssqlgeometryparser.cpp qgsmssqlsourceselect.cpp qgsmssqltablemodel.cpp qgsmssqlnewconnection.cpp qgsmssqldataitems.cpp qgsmssqlfeatureiterator.cpp)
3-
4-
SET (MSSQL_MOC_HDRS qgsmssqlprovider.h qgsmssqlsourceselect.h qgsmssqltablemodel.h qgsmssqlnewconnection.h qgsmssqldataitems.h qgsmssqlfeatureiterator.h)
2+
SET (MSSQL_MOC_HDRS qgsmssqlprovider.h qgsmssqlsourceselect.h qgsmssqltablemodel.h qgsmssqlnewconnection.h qgsmssqldataitems.h)
53

64
########################################################
75
# Build

‎src/providers/spatialite/qgsspatialiteprovider.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
437437
sqliteHandle = handle->handle();
438438

439439
bool alreadyDone = false;
440-
bool ret;
440+
bool ret = false;
441441

442442
#ifdef SPATIALITE_VERSION_GE_4_0_0
443443
// only if libspatialite version is >= 4.0.0
@@ -449,7 +449,7 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
449449
if ( mQuery.startsWith( "(" ) && mQuery.endsWith( ")" ) )
450450
specialCase = true;
451451

452-
if ( specialCase == false )
452+
if ( !specialCase )
453453
{
454454
// using v.4.0 Abstract Interface
455455
ret = true;
@@ -469,14 +469,14 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
469469
}
470470
#endif
471471

472-
if ( alreadyDone == false )
472+
if ( !alreadyDone )
473473
{
474474
// check if this one Layer is based on a Table, View or VirtualShapefile
475475
// by using the traditional methods
476476
ret = checkLayerType();
477477
}
478478

479-
if ( ret == false )
479+
if ( !ret )
480480
{
481481
// invalid metadata
482482
numberFeatures = 0;
@@ -529,7 +529,7 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
529529
}
530530
#endif
531531

532-
if ( alreadyDone == false )
532+
if ( !alreadyDone )
533533
{
534534
// using the traditional methods
535535
if ( !getGeometryDetails() ) // gets srid and geometry type

0 commit comments

Comments
 (0)
Please sign in to comment.