mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
AK: Add implied const qualifiers to the Json interface
As specified by clang-tidy.
This commit is contained in:
parent
b39c4c62d0
commit
b429f9c7aa
3 changed files with 16 additions and 16 deletions
|
@ -16,7 +16,7 @@ JsonPathElement JsonPathElement::any_object_element { Kind::AnyKey };
|
|||
JsonValue JsonPath::resolve(const JsonValue& top_root) const
|
||||
{
|
||||
auto root = top_root;
|
||||
for (auto& element : *this) {
|
||||
for (auto const& element : *this) {
|
||||
switch (element.kind()) {
|
||||
case JsonPathElement::Kind::Key:
|
||||
root = JsonValue { root.as_object().get(element.key()) };
|
||||
|
@ -35,7 +35,7 @@ String JsonPath::to_string() const
|
|||
{
|
||||
StringBuilder builder;
|
||||
builder.append("{ .");
|
||||
for (auto& el : *this) {
|
||||
for (auto const& el : *this) {
|
||||
builder.append(" > ");
|
||||
builder.append(el.to_string());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue