From f5a8374c3efe7e67a1dc88aece82c1b117c342c6 Mon Sep 17 00:00:00 2001 From: Randalphwa <38287198+Randalphwa@users.noreply.github.com> Date: Sun, 15 Dec 2024 17:41:55 -0800 Subject: [PATCH] Add comments around unused parameters This causes build errors when warnings are converted to errors --- source/svgelement.cpp | 4 ++-- source/svgtextelement.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/svgelement.cpp b/source/svgelement.cpp index 27f7c49..6ad0e6e 100644 --- a/source/svgelement.cpp +++ b/source/svgelement.cpp @@ -58,7 +58,7 @@ SVGTextNode::SVGTextNode(Document* document) { } -std::unique_ptr SVGTextNode::clone(bool deep) const +std::unique_ptr SVGTextNode::clone(bool /* deep */) const { auto node = std::make_unique(document()); node->setData(m_data); @@ -455,7 +455,7 @@ void SVGElement::renderChildren(SVGRenderState& state) const } } -void SVGElement::render(SVGRenderState& state) const +void SVGElement::render(SVGRenderState& /* state */) const { } diff --git a/source/svgtextelement.cpp b/source/svgtextelement.cpp index 8bc82c0..96fef14 100644 --- a/source/svgtextelement.cpp +++ b/source/svgtextelement.cpp @@ -6,7 +6,7 @@ namespace wxlunasvg { -static float calculateBaselineOffset(const SVGTextPositioningElement* element) +static float calculateBaselineOffset(const SVGTextPositioningElement* /* element */) { return 0.f; }