From 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 20:23:44 +1000 Subject: The Formatting String Catastrophe --- source/windowing/StarWidget.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/windowing/StarWidget.cpp') diff --git a/source/windowing/StarWidget.cpp b/source/windowing/StarWidget.cpp index 3189f8a..518b922 100644 --- a/source/windowing/StarWidget.cpp +++ b/source/windowing/StarWidget.cpp @@ -427,15 +427,15 @@ String Widget::toStringImpl(int indentLevel) const { for (auto child : m_members) { childrenString.append(child->toStringImpl(indentLevel + 4)); } - String output = strf(R"OUTPUT(%s%s : { -%s address : %p, -%s visible : %s, -%s position : %s, -%s size : %s, -%s children : { -%s -%s } -%s} + String output = strf(R"OUTPUT({}{} : { +{} address : %p, +{} visible : {}, +{} position : {}, +{} size : {}, +{} children : { +{} +{} } +{}} )OUTPUT", leader, m_name, -- cgit v1.2.3