[Analyzers][CPP]Changes to fix warning 26493 on src/modules/ (A to F) (#23482)

starting with letter A to Letter F
This commit is contained in:
sosssego
2023-02-08 11:00:45 +00:00
committed by GitHub
parent a743e496c5
commit fb531139c8
16 changed files with 30 additions and 30 deletions

View File

@@ -188,10 +188,10 @@ D2D1_ROUNDED_RECT FrameDrawer::ConvertRect(RECT rect, int thickness, float radiu
float halfThickness = thickness / 2.0f;
// 1 is needed to eliminate the gap between border and window
auto d2d1Rect = D2D1::RectF((float)rect.left + halfThickness + 1,
(float)rect.top + halfThickness + 1,
(float)rect.right - halfThickness - 1,
(float)rect.bottom - halfThickness - 1);
auto d2d1Rect = D2D1::RectF(static_cast<float>(rect.left) + halfThickness + 1,
static_cast<float>(rect.top) + halfThickness + 1,
static_cast<float>(rect.right) - halfThickness - 1,
static_cast<float>(rect.bottom) - halfThickness - 1);
return D2D1::RoundedRect(d2d1Rect, radius, radius);
}
@@ -200,10 +200,10 @@ D2D1_RECT_F FrameDrawer::ConvertRect(RECT rect, int thickness)
float halfThickness = thickness / 2.0f;
// 1 is needed to eliminate the gap between border and window
return D2D1::RectF((float)rect.left + halfThickness + 1,
(float)rect.top + halfThickness + 1,
(float)rect.right - halfThickness - 1,
(float)rect.bottom - halfThickness - 1);
return D2D1::RectF(static_cast<float>(rect.left) + halfThickness + 1,
static_cast<float>(rect.top) + halfThickness + 1,
static_cast<float>(rect.right) - halfThickness - 1,
static_cast<float>(rect.bottom) - halfThickness - 1);
}
void FrameDrawer::Render()