Clang tidy fixes

This commit is contained in:
Michael Davidson 2024-01-23 22:33:53 +11:00
parent bedaecc508
commit c46adb2c73
No known key found for this signature in database
GPG key ID: B8D1A99712B8B0EB

View file

@ -97,7 +97,7 @@ std::vector<std::shared_ptr<CalculatedTextRun>> TextRunPanel::split_runs_into_wo
can_wrap_at_args.offset = i; can_wrap_at_args.offset = i;
prop.can_wrap = this->can_wrap_at_character_.value(can_wrap_at_args); prop.can_wrap = this->can_wrap_at_character_.value(can_wrap_at_args);
if ((current_text_run == nullptr) || (current_text_run->run_properties.is_equivalent(prop) == false)) { if ((current_text_run == nullptr) || (!current_text_run->run_properties.is_equivalent(prop))) {
current_text_run = std::make_shared<CalculatedTextRun>(run, prop); current_text_run = std::make_shared<CalculatedTextRun>(run, prop);
runs.push_back(current_text_run); runs.push_back(current_text_run);
} }