Skip to content

Commit

Permalink
Benchmarks: Fix compile error with custom string type (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwl4 authored Jul 27, 2023
1 parent 4504817 commit 7d8fc2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Source/Benchmarks/BackgroundBorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ TEST_CASE("backgrounds_and_borders")
document->QuerySelectorAll(elements, "#" + id + " > div");
REQUIRE(!elements.empty());

bench.run("Border " + id, [&] {
bench.run(("Border " + id).c_str(), [&] {
for (auto& element : elements)
element->SetProperty(Rml::PropertyId::BorderLeftColor, Rml::Property(Colourb(), Unit::COLOUR));
context->Update();
Expand Down
2 changes: 1 addition & 1 deletion Tests/Source/Benchmarks/Selectors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ TEST_CASE("Selectors")

bool hover_active = false;

bench.run(name, [&] {
bench.run(name.c_str(), [&] {
hover_active = !hover_active;
// Toggle some arbitrary pseudo class on the element to dirty the definition on this and all descendent elements.
el->SetPseudoClass("hover", hover_active);
Expand Down

0 comments on commit 7d8fc2b

Please sign in to comment.