summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/GML/Parser.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2023-02-20 19:03:44 +0100
committerAndreas Kling <kling@serenityos.org>2023-02-21 00:54:04 +0100
commitfaa1a09042d61724417e78db8283b73f3393f77f (patch)
treed9bb9b392f58a37ecb825a89374df2113409191e /Userland/Libraries/LibGUI/GML/Parser.cpp
parentbfe081caadceaabf9104fbc464d15d705752a78f (diff)
downloadserenity-faa1a09042d61724417e78db8283b73f3393f77f.zip
LibGUI: Fix const-correctness issues
Diffstat (limited to 'Userland/Libraries/LibGUI/GML/Parser.cpp')
-rw-r--r--Userland/Libraries/LibGUI/GML/Parser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/GML/Parser.cpp b/Userland/Libraries/LibGUI/GML/Parser.cpp
index 270bf984dd..18f93109f4 100644
--- a/Userland/Libraries/LibGUI/GML/Parser.cpp
+++ b/Userland/Libraries/LibGUI/GML/Parser.cpp
@@ -82,7 +82,7 @@ static ErrorOr<NonnullRefPtr<Object>> parse_gml_object(Queue<Token>& tokens)
else if (peek() == Token::Type::JsonValue)
value = TRY(try_make_ref_counted<JsonValueNode>(TRY(JsonValueNode::from_string(tokens.dequeue().m_view))));
- auto property = TRY(try_make_ref_counted<KeyValuePair>(property_name.m_view, value.release_nonnull()));
+ auto property = TRY(try_make_ref_counted<KeyValuePair const>(property_name.m_view, value.release_nonnull()));
TRY(object->add_property_child(property));
} else if (peek() == Token::Type::Comment) {
pending_comments.append(TRY(Node::from_token<Comment>(tokens.dequeue())));