From 7ed87d049f1fdd21e4e1d36743bb3cbefe069a0d Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 13 Oct 2023 10:06:15 +0400 Subject: [PATCH] Fix build with GCC. --- ui/text/text_block.cpp | 4 ---- ui/wrap/table_layout.cpp | 1 - 2 files changed, 5 deletions(-) diff --git a/ui/text/text_block.cpp b/ui/text/text_block.cpp index 4e0b8cf..478c69e 100644 --- a/ui/text/text_block.cpp +++ b/ui/text/text_block.cpp @@ -133,10 +133,6 @@ QFixed LineBreakHelper::negativeRightBearing() const { return qAbs(rightBearing); } -QString DebugCurrentParsingString, DebugCurrentParsingPart; -int DebugCurrentParsingFrom = 0; -int DebugCurrentParsingLength = 0; - void addNextCluster( int &pos, int end, diff --git a/ui/wrap/table_layout.cpp b/ui/wrap/table_layout.cpp index feecc1a..efd032c 100644 --- a/ui/wrap/table_layout.cpp +++ b/ui/wrap/table_layout.cpp @@ -39,7 +39,6 @@ void TableLayout::paintEvent(QPaintEvent *e) { auto path = QPainterPath(); path.addRoundedRect(inner, _st.radius, _st.radius); - auto top = half; for (auto i = 1, count = int(_rows.size()); i != count; ++i) { const auto y = _rows[i].top - half; path.moveTo(half, y);