Fix build with GCC.

This commit is contained in:
John Preston 2023-10-13 10:10:11 +04:00
parent 0e79bd3d12
commit 4b618a3578
4 changed files with 2 additions and 5 deletions

View File

@ -5020,7 +5020,6 @@ void OverlayWidget::paintCaptionContent(
}
if (inner.intersects(clip)) {
p.setPen(st::mediaviewCaptionFg);
const auto lineHeight = st::mediaviewCaptionStyle.font->height;
_caption.draw(p, {
.position = inner.topLeft(),
.availableWidth = inner.width(),

View File

@ -23,7 +23,7 @@ SegmentTree::SegmentTree(std::vector<int> array)
// The max size of this array is about 2 * 2 ^ log2(n) + 1.
const auto size = 2 * std::pow(
2.,
std::floor((std::logf(_array.size()) / std::logf(2.)) + 1));
std::floor((std::log(_array.size()) / std::log(2.)) + 1));
_heap.resize(int(size));
build(1, 0, _array.size());
}

View File

@ -864,10 +864,8 @@ void StackLinearChartView::paintSelectedXIndex(
if ((selectedXIndex < 0) || c.footer) {
return;
}
const auto &[localStart, localEnd] = _transition.zoomedOutXIndices;
const auto xPercentageLimits = _transition.zoomedOutXPercentage;
p.setBrush(st::boxBg);
const auto r = st::statisticsDetailsDotRadius;
const auto i = selectedXIndex;
const auto isSameToken = (_selectedPoints.lastXIndex == selectedXIndex)
&& (_selectedPoints.lastHeightLimits.min == c.heightLimits.min)

@ -1 +1 @@
Subproject commit a38b60636a42932b5e4d3d2391769a34876a2626
Subproject commit 7ed87d049f1fdd21e4e1d36743bb3cbefe069a0d