Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Unified Diff: Source/core/inspector/InspectorInspectorAgent.cpp

Issue 482753002: Use StringBuilder::appendLiteral() / StringBuilder::append(char) when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorInspectorAgent.cpp
diff --git a/Source/core/inspector/InspectorInspectorAgent.cpp b/Source/core/inspector/InspectorInspectorAgent.cpp
index 1c51a3b650ce2850c956abc635e0dc355d0fa324..852c08b50ca39ad2850eef09bdc59ffe75968cdc 100644
--- a/Source/core/inspector/InspectorInspectorAgent.cpp
+++ b/Source/core/inspector/InspectorInspectorAgent.cpp
@@ -87,9 +87,9 @@ void InspectorInspectorAgent::didClearDocumentOfWindowObject(LocalFrame* frame)
int injectedScriptId = m_injectedScriptManager->injectedScriptIdFor(ScriptState::forMainWorld(frame));
StringBuilder scriptSource;
scriptSource.append(script);
- scriptSource.append("(");
+ scriptSource.append('(');
scriptSource.appendNumber(injectedScriptId);
- scriptSource.append(")");
+ scriptSource.append(')');
frame->script().executeScriptInMainWorld(scriptSource.toString());
}
« no previous file with comments | « Source/core/inspector/InspectorApplicationCacheAgent.cpp ('k') | Source/core/inspector/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698