Skip to content

Commit 871de2f

Browse files
Fix a clang-tidy warning in display_list_canvas_unittests.cc (flutter#37062)
1 parent 7d5df81 commit 871de2f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

display_list/display_list_canvas_unittests.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3300,8 +3300,9 @@ TEST_F(DisplayListCanvas, SaveLayerConsolidation) {
33003300

33013301
// clang-format off
33023302
auto test_attributes = [&env, render_content]
3303-
(DlPaint& paint1, DlPaint& paint2, DlPaint paint_both,
3304-
bool same, bool rev_same, std::string desc1, std::string desc2) {
3303+
(DlPaint& paint1, DlPaint& paint2, const DlPaint& paint_both,
3304+
bool same, bool rev_same, const std::string& desc1,
3305+
const std::string& desc2) {
33053306
// clang-format on
33063307
DisplayListBuilder nested_builder;
33073308
nested_builder.saveLayer(&kTestBounds, &paint1);

0 commit comments

Comments
 (0)