Beta version 4.5.4: Fix build with GCC.

This commit is contained in:
John Preston 2023-01-10 16:59:05 +04:00
parent 94a956ce19
commit 12c2e42917
2 changed files with 0 additions and 16 deletions

View File

@ -518,7 +518,6 @@ void SetupInterfaceScale(
? ScalePreviewShow::Update
: ScalePreviewShow::Show;
*shown = true;
auto index = 0;
for (auto i = 0; i != valuesCount; ++i) {
if (values[i] <= scale
&& (i + 1 == valuesCount || values[i + 1] > scale)) {

View File

@ -73,9 +73,6 @@ private:
void validateShadowCache();
[[nodiscard]] int scaled(int value) const;
[[nodiscard]] QPoint scaled(QPoint value) const;
[[nodiscard]] QSize scaled(QSize value) const;
[[nodiscard]] QRect scaled(QRect value) const;
[[nodiscard]] QMargins scaled(QMargins value) const;
[[nodiscard]] style::font scaled(
const style::font &value, int size) const;
@ -310,18 +307,6 @@ int Preview::scaled(int value) const {
return style::ConvertScale(value, _scale);
}
QPoint Preview::scaled(QPoint value) const {
return { scaled(value.x()), scaled(value.y()) };
}
QSize Preview::scaled(QSize value) const {
return { scaled(value.width()), scaled(value.height()) };
}
QRect Preview::scaled(QRect value) const {
return { scaled(value.topLeft()), scaled(value.size()) };
}
QMargins Preview::scaled(QMargins value) const {
return {
scaled(value.left()),