mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-29 07:19:28 -05:00
Remove warnings
Update Ghoul repository Fix spelling mistake in openspace.cfg
This commit is contained in:
@@ -92,7 +92,7 @@ Geodetic2 GeodeticPatch::getCorner(Quad q) const {
|
||||
case NORTH_EAST: return Geodetic2(maxLat(), maxLon());// northEastCorner();
|
||||
case SOUTH_WEST: return Geodetic2(minLat(), minLon());// southWestCorner();
|
||||
case SOUTH_EAST: return Geodetic2(minLat(), maxLon());// southEastCorner();
|
||||
default: ghoul_assert(false, "Missing case label");
|
||||
default: throw ghoul::MissingCaseException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -240,16 +240,11 @@ int PixelRegion::area() const {
|
||||
|
||||
int PixelRegion::edge(Side side) const {
|
||||
switch (side) {
|
||||
case Side::LEFT:
|
||||
return start.x;
|
||||
case Side::TOP:
|
||||
return start.y;
|
||||
case Side::RIGHT:
|
||||
return start.x + numPixels.x;
|
||||
case Side::BOTTOM:
|
||||
return start.y + numPixels.y;
|
||||
default:
|
||||
ghoul_assert(false, "Missing case label");
|
||||
case Side::LEFT: return start.x;
|
||||
case Side::TOP: return start.y;
|
||||
case Side::RIGHT: return start.x + numPixels.x;
|
||||
case Side::BOTTOM: return start.y + numPixels.y;
|
||||
default: throw ghoul::MissingCaseException();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user