Skip to content
Permalink
Browse files

fix warnings (gcc 4.5.1, Qt 4.7.1)

git-svn-id: http://svn.osgeo.org/qgis/trunk@14742 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 22, 2010
1 parent aff9830 commit b47d10f77902a75ccc45d5be37e5bbc3b9580f08
@@ -383,6 +383,10 @@ void QgsLegend::mouseMoveEvent( QMouseEvent * e )
mDropAction = INSERT;
}
}
else
{
line_y = visualItemRect( item ).bottom() - 2;
}

showLine( line_y, line_x );
setCursor( QCursor( Qt::SizeVerCursor ) );
@@ -1554,7 +1558,7 @@ void QgsLegend::handleItemChange( QTreeWidgetItem* item, int column )
ll->layer()->setLayerName( ll->text( 0 ) );
}

bool renderFlagState;
bool renderFlagState = false;
bool changing = mChanging;
mChanging = true;

@@ -610,7 +610,6 @@ void QgsLegendLayer::updateItemListCountV2( SymbologyList& itemList, QgsVectorLa
symbolIt = symbolList.constBegin();
for ( ; symbolIt != symbolList.constEnd(); ++symbolIt )
{
QgsSymbolV2* debug = symbolIt->second;
itemList.push_back( qMakePair( symbolIt->first + " [" + QString::number( mSymbolCountMap[symbolIt->second] ) + "]", itemMap[symbolIt->first] ) );
}
}
@@ -96,7 +96,7 @@ void QgsMapToolSimplify::toleranceChanged( int tolerance )
QgsSimplifyFeature::simplifyPolygon( f, mTolerance );
}
}
mRubberBand->setToGeometry( f.geometry(), false );
mRubberBand->setToGeometry( f.geometry(), 0 );
}


@@ -287,7 +287,7 @@ void QgsMapToolSimplify::canvasPressEvent( QMouseEvent * e )
}

mRubberBand = new QgsRubberBand( mCanvas );
mRubberBand->setToGeometry( mSelectedFeature.geometry(), false );
mRubberBand->setToGeometry( mSelectedFeature.geometry(), 0 );
mRubberBand->setColor( Qt::red );
mRubberBand->setWidth( 2 );
mRubberBand->show();
@@ -3822,7 +3822,7 @@ QString QgsGeometry::exportToWkt()
if ( !mGeometry )
{
QgsDebugMsg( "WKB geometry not available!" );
return false;
return QString::null;
}

QGis::WkbType wkbType;
@@ -4085,7 +4085,7 @@ QString QgsGeometry::exportToWkt()

default:
QgsDebugMsg( "error: mGeometry type not recognized" );
return QString();
return QString::null;
}
}

@@ -54,7 +54,7 @@
<attribute name="title">
<string>Modules List</string>
</attribute>
<layout class="QGridLayout" name="gridLayout">
<layout class="QGridLayout" name="gridLayout_1">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
@@ -147,7 +147,7 @@
<property name="title">
<string>Selection</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<layout class="QGridLayout" name="gridLayout_1">
<item row="0" column="0">
<widget class="QLineEdit" name="lineEdit"/>
</item>

0 comments on commit b47d10f

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