Skip to content

Commit

Permalink
fix windows build (fixes #9416)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 24, 2014
1 parent 2a1ef13 commit a78a003
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/analysis/vector/mersenne-twister.cpp
Expand Up @@ -21,7 +21,6 @@
*/

#include <stdio.h>
#include <stdint.h>
#include "mersenne-twister.h"

/*
Expand Down
7 changes: 7 additions & 0 deletions src/analysis/vector/mersenne-twister.h
Expand Up @@ -22,7 +22,14 @@
#ifndef MERSENNE_TWISTER_H
#define MERSENNE_TWISTER_H

#ifndef _MSC_VER
#include <stdint.h>
#else
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#endif
#include <limits>

#ifdef __cplusplus
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/vector/qgstransectsample.cpp
Expand Up @@ -6,7 +6,9 @@
#include "qgsvectorlayer.h"
#include <QProgressDialog>
#include <QFileInfo>
#ifndef _MSC_VER
#include <stdint.h>
#endif
#include "mersenne-twister.h"
#include <limits>

Expand Down
1 change: 1 addition & 0 deletions src/app/gps/qgsgpsmarker.cpp
Expand Up @@ -50,6 +50,7 @@ void QgsGpsMarker::setCenter( const QgsPoint& point )
}
catch ( QgsCsException &e ) //silently ignore transformation exceptions
{
Q_UNUSED( e );
return;
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
Expand Up @@ -55,9 +55,9 @@ QgsRendererCategoryV2& QgsRendererCategoryV2::operator=( QgsRendererCategoryV2 c

void QgsRendererCategoryV2::swap( QgsRendererCategoryV2 & cat )
{
std::swap( mValue, cat.mValue );
std::swap( mSymbol, cat.mSymbol );
std::swap( mLabel, cat.mLabel );
qSwap( mValue, cat.mValue );
qSwap( mSymbol, cat.mSymbol );
qSwap( mLabel, cat.mLabel );
}

QVariant QgsRendererCategoryV2::value() const
Expand Down
6 changes: 3 additions & 3 deletions src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
Expand Up @@ -60,9 +60,9 @@ QgsRendererRangeV2& QgsRendererRangeV2::operator=( QgsRendererRangeV2 range )

void QgsRendererRangeV2::swap( QgsRendererRangeV2 & other )
{
std::swap( mLowerValue, other.mLowerValue );
std::swap( mUpperValue, other.mUpperValue );
std::swap( mSymbol, other.mSymbol );
qSwap( mLowerValue, other.mLowerValue );
qSwap( mUpperValue, other.mUpperValue );
qSwap( mSymbol, other.mSymbol );
std::swap( mLabel, other.mLabel );
}

Expand Down
12 changes: 6 additions & 6 deletions src/core/symbology-ng/qgssinglesymbolrendererv2.cpp
Expand Up @@ -56,12 +56,12 @@ QgsSingleSymbolRendererV2 & QgsSingleSymbolRendererV2::operator=( QgsSingleSymbo

void QgsSingleSymbolRendererV2::swap( QgsSingleSymbolRendererV2 & other )
{
std::swap( mSymbol, other.mSymbol );
std::swap( mRotation, other.mRotation );
std::swap( mSizeScale, other.mSizeScale );
std::swap( mScaleMethod, other.mScaleMethod );
std::swap( mTempSymbol, other.mTempSymbol );
std::swap( mOrigSize, other.mOrigSize );
qSwap( mSymbol, other.mSymbol );
qSwap( mRotation, other.mRotation );
qSwap( mSizeScale, other.mSizeScale );
qSwap( mScaleMethod, other.mScaleMethod );
qSwap( mTempSymbol, other.mTempSymbol );
qSwap( mOrigSize, other.mOrigSize );
}

QgsSingleSymbolRendererV2::~QgsSingleSymbolRendererV2()
Expand Down

0 comments on commit a78a003

Please sign in to comment.