mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
refactor: remove stray .c_str() calls for absl::StrFormat() (#47548)
refactor: remove stray .c_str() calls for absl::StrFormat() StrFormat() understands std::string, std::string_view
This commit is contained in:
@@ -185,8 +185,8 @@ RendererClientBase* RendererClientBase::Get() {
|
||||
void RendererClientBase::BindProcess(v8::Isolate* isolate,
|
||||
gin_helper::Dictionary* process,
|
||||
content::RenderFrame* render_frame) {
|
||||
auto context_id = absl::StrFormat("%s-%" PRId64, renderer_client_id_.c_str(),
|
||||
++next_context_id_);
|
||||
auto context_id =
|
||||
absl::StrFormat("%s-%" PRId64, renderer_client_id_, ++next_context_id_);
|
||||
|
||||
process->SetReadOnly("isMainFrame", render_frame->IsMainFrame());
|
||||
process->SetReadOnly("contextIsolated",
|
||||
|
||||
Reference in New Issue
Block a user