Skip to content

Commit a459295

Browse files
author
jef
committedMar 15, 2011
fix warnings and windows build
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15504 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

9 files changed

+12
-10
lines changed

9 files changed

+12
-10
lines changed
 

‎src/app/qgsvectorlayerproperties.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,6 @@ void QgsVectorLayerProperties::apply()
735735
ds.maxScaleDenominator = -1;
736736
}
737737

738-
QgsDiagramRendererV2* r = 0;
739738
if ( mFixedSizeCheckBox->isChecked() )
740739
{
741740
QgsSingleCategoryDiagramRenderer* dr = new QgsSingleCategoryDiagramRenderer();

‎src/core/qgsclipper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ inline void QgsClipper::trimFeatureToBoundary(
291291
unsigned int i1 = inPts.size() - 1; // start with last point
292292

293293
// and compare to the first point initially.
294-
for ( unsigned int i2 = 0; i2 < inPts.size() ; ++i2 )
294+
for ( int i2 = 0; i2 < inPts.size() ; ++i2 )
295295
{ // look at each edge of the polygon in turn
296296
if ( inside( inPts[i2], b ) ) // end point of edge is inside boundary
297297
{

‎src/core/qgsdiagram.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ struct QgsDiagramSettings;
1111
class QgsRenderContext;
1212

1313
/**Base class for all diagram types*/
14-
class QgsDiagram
14+
class CORE_EXPORT QgsDiagram
1515
{
1616
public:
1717
/**Draws the diagram at the given position (in pixel coordinates)*/
@@ -24,7 +24,7 @@ class QgsDiagram
2424
QFont scaledFont( const QgsDiagramSettings& s, const QgsRenderContext& c );
2525
};
2626

27-
class QgsTextDiagram: public QgsDiagram
27+
class CORE_EXPORT QgsTextDiagram: public QgsDiagram
2828
{
2929
public:
3030
enum Shape
@@ -57,7 +57,7 @@ class QgsTextDiagram: public QgsDiagram
5757
void lineEllipseIntersection( const QPointF& lineStart, const QPointF& lineEnd, const QPointF& ellipseMid, double r1, double r2, QList<QPointF>& result ) const;
5858
};
5959

60-
class QgsPieDiagram: public QgsDiagram
60+
class CORE_EXPORT QgsPieDiagram: public QgsDiagram
6161
{
6262
public:
6363
QgsPieDiagram();

‎src/core/qgsdiagramrendererv2.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct QgsDiagramSettings
9292
};
9393

9494
/**Returns diagram settings for a feature*/
95-
class QgsDiagramRendererV2
95+
class CORE_EXPORT QgsDiagramRendererV2
9696
{
9797
public:
9898

@@ -142,7 +142,7 @@ class QgsDiagramRendererV2
142142
};
143143

144144
/**Renders the diagrams for all features with the same settings*/
145-
class QgsSingleCategoryDiagramRenderer: public QgsDiagramRendererV2
145+
class CORE_EXPORT QgsSingleCategoryDiagramRenderer: public QgsDiagramRendererV2
146146
{
147147
public:
148148
QgsSingleCategoryDiagramRenderer();
@@ -168,7 +168,7 @@ class QgsSingleCategoryDiagramRenderer: public QgsDiagramRendererV2
168168
QgsDiagramSettings mSettings;
169169
};
170170

171-
class QgsLinearlyInterpolatedDiagramRenderer: public QgsDiagramRendererV2
171+
class CORE_EXPORT QgsLinearlyInterpolatedDiagramRenderer: public QgsDiagramRendererV2
172172
{
173173
public:
174174
QgsLinearlyInterpolatedDiagramRenderer();

‎src/core/qgsmaprenderer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class QgsLabelingEngineInterface
7474
//! @note: this method was added in version 1.6
7575
virtual int prepareLayer( QgsVectorLayer* layer, QSet<int>& attrIndices, QgsRenderContext& ctx ) = 0;
7676
//! adds a diagram layer to the labeling engine
77-
virtual int addDiagramLayer( QgsVectorLayer* layer, QgsDiagramLayerSettings& s ) {};
77+
virtual int addDiagramLayer( QgsVectorLayer* layer, QgsDiagramLayerSettings& s ) { return 0; };
7878
//! called for every feature
7979
virtual void registerFeature( QgsVectorLayer* layer, QgsFeature& feat, const QgsRenderContext& context = QgsRenderContext() ) = 0;
8080
//! called for every diagram feature

‎src/core/qgspallabeling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ int QgsPalLabeling::addDiagramLayer( QgsVectorLayer* layer, QgsDiagramLayerSetti
760760

761761
s.palLayer = l;
762762
if ( mMapRenderer->hasCrsTransformEnabled() )
763-
s.ct = new QgsCoordinateTransform( layer->srs(), mMapRenderer->destinationSrs() );
763+
s.ct = new QgsCoordinateTransform( layer->crs(), mMapRenderer->destinationCrs() );
764764
else
765765
s.ct = NULL;
766766
s.xform = mMapRenderer->coordinateTransform();

‎src/mapserver/qgsfilter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "qgsvectordataprovider.h"
2323
#include <QDomElement>
2424
#include <QStringList>
25+
#include "qgsvectorlayer.h"
2526

2627
QgsFilter::QgsFilter(): mPropertyIndex( -1 )
2728
{

‎src/plugins/dxf2shp_converter/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ INCLUDE_DIRECTORIES(
3939
../../core/symbology
4040
../../gui
4141
..
42+
${GEOS_INCLUDE_DIR}
4243
)
4344

4445
TARGET_LINK_LIBRARIES(dxf2shpconverterplugin

‎src/plugins/sqlanywhere/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ INCLUDE_DIRECTORIES(
5959
../../app
6060
..
6161
../../providers/sqlanywhere/sqlanyconnection
62+
${GEOS_INCLUDE_DIR}
6263
)
6364

6465
TARGET_LINK_LIBRARIES(sqlanywhereplugin

0 commit comments

Comments
 (0)
Please sign in to comment.