Fixed some Clang compiler warnings.

This commit is contained in:
Leon Styhre 2022-09-03 16:39:59 +02:00
parent bb68e809f5
commit 947ab458ae
4 changed files with 1 additions and 6 deletions

View file

@ -19,8 +19,6 @@ RatingComponent::RatingComponent(bool colorizeChanges)
, mImageRatio {1.0f}
, mColorOriginalValue {DEFAULT_COLORSHIFT}
, mColorChangedValue {DEFAULT_COLORSHIFT}
, mColorShift {DEFAULT_COLORSHIFT}
, mColorShiftEnd {DEFAULT_COLORSHIFT}
, mColorizeChanges {colorizeChanges}
, mOverlay {true}
{

View file

@ -56,8 +56,6 @@ private:
unsigned int mColorOriginalValue;
unsigned int mColorChangedValue;
unsigned int mColorShift;
unsigned int mColorShiftEnd;
bool mColorizeChanges;
bool mOverlay;

View file

@ -130,7 +130,7 @@ void VideoComponent::applyTheme(const std::shared_ptr<ThemeData>& theme,
videoSize.x = glm::clamp(videoSize.x, 0.01f, 2.0f);
if (videoSize.y > 0.0f)
videoSize.y = glm::clamp(videoSize.y, 0.01f, 2.0f);
setResize(videoSize * scale);
setResize(videoSize.x * scale.x, videoSize.y * scale.y);
mVideoAreaSize = videoSize * scale;
}
else if (elem->has("maxSize")) {

View file

@ -79,7 +79,6 @@ public:
// zero, no resizing. This can be set before or after a video is loaded.
// setMaxSize() and setResize() are mutually exclusive.
virtual void setResize(float width, float height) override = 0;
void setResize(const glm::vec2& size) { setResize(size.x, size.y); }
// Resize the video to be as large as possible but fit within a box of this size.
// This can be set before or after a video is loaded.