diff options
author | Tad Marshall <tad@10gen.com> | 2013-01-14 17:21:58 -0500 |
---|---|---|
committer | Tad Marshall <tad@10gen.com> | 2013-01-14 17:21:58 -0500 |
commit | 4d0654de1470ca88fb319bc99d57f96136791768 (patch) | |
tree | b93154c15af837a69d4a811e73f90207693eafa8 /src/mongo | |
parent | 4c803ee9e211b81ba0aea185c2f320aa02e27646 (diff) | |
download | mongo-4d0654de1470ca88fb319bc99d57f96136791768.tar.gz |
Fix Windows compile
Use mongo::Polygon instead of just Polygon to avoid collision with
Windows GDI function Polygon().
Diffstat (limited to 'src/mongo')
-rw-r--r-- | src/mongo/db/geo/geoparser_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/geo/geoparser_test.cpp b/src/mongo/db/geo/geoparser_test.cpp index 06c924ad5f0..2e7fffb515f 100644 --- a/src/mongo/db/geo/geoparser_test.cpp +++ b/src/mongo/db/geo/geoparser_test.cpp @@ -200,7 +200,7 @@ namespace { } TEST(GeoParser, parseLegacyPolygon) { - Polygon polygon; + mongo::Polygon polygon; ASSERT(GeoParser::parsePolygon(fromjson("{$polygon: [[10,20],[10,40],[30,40],[30,20]]}"), &polygon)); ASSERT(GeoParser::parsePolygon(fromjson("{$polygon: [[10,20], [10,40], [30,40]]}"), &polygon)); |