Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix windows build
  • Loading branch information
jef-n committed Jan 20, 2015
1 parent df79c2a commit 106358c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions src/core/qgspointlocator.cpp
Expand Up @@ -195,11 +195,11 @@ struct _CohenSutherland

typedef int OutCode;

const int INSIDE = 0; // 0000
const int LEFT = 1; // 0001
const int RIGHT = 2; // 0010
const int BOTTOM = 4; // 0100
const int TOP = 8; // 1000
static const int INSIDE = 0; // 0000
static const int LEFT = 1; // 0001
static const int RIGHT = 2; // 0010
static const int BOTTOM = 4; // 0100
static const int TOP = 8; // 1000

QgsRectangle mRect;

Expand Down
4 changes: 2 additions & 2 deletions src/core/qgspointlocator.h
Expand Up @@ -45,7 +45,7 @@ class QgsPointLocator_VisitorEdgesInRect;
*
* @note added in 2.8
*/
class QgsPointLocator : public QObject
class CORE_EXPORT QgsPointLocator : public QObject
{
Q_OBJECT
public:
Expand Down Expand Up @@ -117,7 +117,7 @@ class QgsPointLocator : public QObject
QgsPoint mEdgePoints[2];
};

typedef struct QList<Match> MatchList;
typedef class QList<Match> MatchList;

//! Interface that allows rejection of some matches in intersection queries
//! (e.g. a match can only belong to a particular feature / match must not be a particular point).
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgssnappingutils.h
Expand Up @@ -38,7 +38,7 @@
*
* @note added in 2.8
*/
class QgsSnappingUtils : public QObject
class CORE_EXPORT QgsSnappingUtils : public QObject
{
Q_OBJECT
public:
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgspointlocator.cpp
Expand Up @@ -99,7 +99,7 @@ class TestQgsPointLocator : public QObject
QCOMPARE( m.layer(), mVL );
QCOMPARE( m.featureId(), ( QgsFeatureId )1 );
QCOMPARE( m.point(), QgsPoint( 1, 1 ) );
QCOMPARE( m.distance(), sqrt( 2 ) );
QCOMPARE( m.distance(), sqrt( 2.0 ) );
QCOMPARE( m.vertexIndex(), 2 );
}

Expand Down

0 comments on commit 106358c

Please sign in to comment.