[Webkit-unassigned] [Bug 95924] Deploy StringBuilder in more places in WebKit2

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 5 21:18:52 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=95924





--- Comment #10 from Ryuan Choi <ryuan.choi at samsung.com>  2012-09-05 21:19:06 PST ---
(From update of attachment 162403)
View in context: https://bugs.webkit.org/attachment.cgi?id=162403&action=review

> Source/WebKit2/Shared/WebMemorySampler.cpp:141
> +    processDetails.appendLiteral("\n");

append('\n') looks better.

> Source/WebKit2/Shared/WebMemorySampler.cpp:142
> +    writeToFile(m_sampleLogFile, processDetails.toString().utf8().data(), processDetails.toString().utf8().length());

I am not sure, but isn't it better to keep String reference instead of using toString twice ?

> Source/WebKit2/Shared/WebMemorySampler.cpp:153
> +    header.appendLiteral("\n");
> +    writeToFile(m_sampleLogFile, header.toString().utf8().data(), header.toString().utf8().length());

Ditto.

> Source/WebKit2/Shared/WebMemorySampler.cpp:184
> +    statString.appendLiteral("\n");
> +    writeToFile(m_sampleLogFile, statString.toString().utf8().data(), statString.toString().utf8().length());

Ditto.

> Source/WebKit2/WebProcess/Plugins/Netscape/NetscapeBrowserFuncs.cpp:127
> +    etringBuilder result;

Typo

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list