fix: modernize-avoid-c-arrays (#44813)
use string_view for constants used in methods that take string_view args
This commit is contained in:
parent
024fee4e44
commit
3c941c7e8f
11 changed files with 69 additions and 62 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
|
@ -39,7 +40,7 @@ namespace extensions {
|
|||
|
||||
namespace tabs = api::tabs;
|
||||
|
||||
const char kFrameNotFoundError[] = "No frame with id * in tab *.";
|
||||
constexpr std::string_view kFrameNotFoundError = "No frame with id * in tab *.";
|
||||
const char kPerOriginOnlyInAutomaticError[] =
|
||||
"Can only set scope to "
|
||||
"\"per-origin\" in \"automatic\" mode.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue