Address Visual Studio analyzer warnings

This commit is contained in:
Alexander Bock
2022-04-12 00:58:11 +02:00
parent f1667a7f43
commit d360f2ae59
17 changed files with 38 additions and 41 deletions

View File

@@ -856,7 +856,7 @@ public:
};
/// The shape of the returned field of view
Shape shape;
Shape shape = Shape::Rectangle;
/// The name of the reference frame in which the #bounds are defined
std::string frameName;

View File

@@ -198,7 +198,8 @@ constexpr double convertTime(double t, TimeUnit sourceUnit, TimeUnit destination
case TimeUnit::Year:
seconds = t * SecondsPerYear;
break;
default: ;
default:
break;
}
switch (destinationUnit) {

View File

@@ -167,7 +167,7 @@ private:
bool _shouldSetTime = false;
Time _timeNextFrame;
bool _timelineChanged;
bool _timelineChanged = false;
double _latestConsumedTimestamp = -std::numeric_limits<double>::max();
int _nextCallbackHandle = 0;