Skip to content
Permalink
Browse files

Avoid warnings

  • Loading branch information
nyalldawson committed Dec 10, 2015
1 parent c6c076b commit f93fce739005ccc5d031a8970448563f7e5c18c9
@@ -108,6 +108,8 @@ QgsSymbolLayerV2* QgsSymbolLayerV2Registry::defaultSymbolLayer( QgsSymbolV2::Sym
case QgsSymbolV2::Hybrid:
return 0;
}

return 0;
}


@@ -26,6 +26,9 @@ SET(ORACLE_MOC_HDRS
qgsoracletablemodel.h
qgsoraclecolumntypethread.h
qgsoracleconnpool.h
)

SET(ORACLE_HDRS
qgsoracleexpressioncompiler.h
)

@@ -51,7 +54,7 @@ INCLUDE_DIRECTORIES(SYSTEM
${QSCINTILLA_INCLUDE_DIR}
)

ADD_LIBRARY (oracleprovider MODULE ${ORACLE_SRCS} ${ORACLE_MOC_SRCS})
ADD_LIBRARY (oracleprovider MODULE ${ORACLE_SRCS} ${ORACLE_HDRS} ${ORACLE_MOC_SRCS})

TARGET_LINK_LIBRARIES (oracleprovider
qgis_core
@@ -180,7 +180,9 @@ bool QgsOracleFeatureIterator::fetchFeature( QgsFeature& feature )
unsigned char *copy = new unsigned char[ba->size()];
memcpy( copy, ba->constData(), ba->size() );

feature.setGeometryAndOwnership( copy, ba->size() );
QgsGeometry *g = new QgsGeometry();
g->fromWkb( copy, ba->size() );
feature.setGeometry( g );

if (( mRequest.flags() & QgsFeatureRequest::ExactIntersect ) != 0 && ( !mConnection->hasSpatial() || !mSource->mHasSpatialIndex ) &&
mRequest.filterType() == QgsFeatureRequest::FilterRect &&
@@ -194,7 +196,7 @@ bool QgsOracleFeatureIterator::fetchFeature( QgsFeature& feature )

if (( mRequest.flags() & QgsFeatureRequest::NoGeometry ) != 0 )
{
feature.setGeometryAndOwnership( 0, 0 );
feature.setGeometry( 0 );
}
}

0 comments on commit f93fce7

Please sign in to comment.
You can’t perform that action at this time.