mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 07:41:01 +00:00
LibWeb: Remove Unicode Cyrillic e char (04+35) in variable name
Static analysis tool cppcheck reports that LibWeb/Internals/Internals.cpp:65 has a variable named hit_tеsting_result with a Cyrillic e in the 'testing' portion of the name, instead of the more common ASCII e. No other use of Unicode characters for identifiers in the Ladybird code base noted by cppcheck, so assuming that this is unintended use.
This commit is contained in:
parent
1274f4e2f7
commit
4b3dccd0f2
Notes:
github-actions[bot]
2025-06-03 19:23:36 +00:00
Author: https://github.com/rcorsi
Commit: 4b3dccd0f2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4986
Reviewed-by: https://github.com/kalenikaliaksandr ✅
1 changed files with 4 additions and 4 deletions
|
@ -62,10 +62,10 @@ JS::Object* Internals::hit_test(double x, double y)
|
|||
active_document.update_layout(DOM::UpdateLayoutReason::InternalsHitTest);
|
||||
auto result = active_document.paintable_box()->hit_test({ x, y }, Painting::HitTestType::Exact);
|
||||
if (result.has_value()) {
|
||||
auto hit_tеsting_result = JS::Object::create(realm(), nullptr);
|
||||
hit_tеsting_result->define_direct_property("node"_fly_string, result->dom_node(), JS::default_attributes);
|
||||
hit_tеsting_result->define_direct_property("indexInNode"_fly_string, JS::Value(result->index_in_node), JS::default_attributes);
|
||||
return hit_tеsting_result;
|
||||
auto hit_testing_result = JS::Object::create(realm(), nullptr);
|
||||
hit_testing_result->define_direct_property("node"_fly_string, result->dom_node(), JS::default_attributes);
|
||||
hit_testing_result->define_direct_property("indexInNode"_fly_string, JS::Value(result->index_in_node), JS::default_attributes);
|
||||
return hit_testing_result;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue