Skip to content

Commit

Permalink
Convert various const strings to constexprs: chromecast/
Browse files Browse the repository at this point in the history
This makes it possible to supply them to absl::StrFormat() as format
strings, and may enable better codegen.

Bug: 1371963
Change-Id: Ia34266e822b44ce11887fc478c54495527fa830f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4943408
Auto-Submit: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Kenneth MacKay <kmackay@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1210656}
  • Loading branch information
pkasting authored and Chromium LUCI CQ committed Oct 17, 2023
1 parent 289b883 commit 3581f4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace post_processor_test {

namespace {

const char* kConfigTemplate =
constexpr char kConfigTemplate[] =
R"config({"onset_volume": %f, "clamp_multiplier": %f})config";

const float kDefaultClamp = 0.6f;
Expand Down

0 comments on commit 3581f4c

Please sign in to comment.