diff options
Diffstat (limited to 'src/mongo/db/geo/r2_region_coverer_test.cpp')
-rw-r--r-- | src/mongo/db/geo/r2_region_coverer_test.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mongo/db/geo/r2_region_coverer_test.cpp b/src/mongo/db/geo/r2_region_coverer_test.cpp index 69b6abba563..6ae997d0ee5 100644 --- a/src/mongo/db/geo/r2_region_coverer_test.cpp +++ b/src/mongo/db/geo/r2_region_coverer_test.cpp @@ -275,11 +275,13 @@ GeometryContainer* getRandomCircle(double radius) { // Format: { $center : [ [-74, 40.74], 10 ] } GeometryContainer* container = new GeometryContainer(); - container->parseFromQuery( - BSON("$center" << BSON_ARRAY(BSON_ARRAY(randDouble(radius, MAXBOUND - radius) - << randDouble(radius, MAXBOUND - radius)) - << radius)) - .firstElement()); + container + ->parseFromQuery( + BSON("$center" << BSON_ARRAY(BSON_ARRAY(randDouble(radius, MAXBOUND - radius) + << randDouble(radius, MAXBOUND - radius)) + << radius)) + .firstElement()) + .transitional_ignore(); return container; } |