[webkit-reviews] review granted: [Bug 95904] Remove String::operator+=() from windows platform code : [Attachment 162354] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 5 15:53:46 PDT 2012


Benjamin Poulain <benjamin at webkit.org> has granted Patrick R. Gansterer
<paroga at paroga.com>'s request for review:
Bug 95904: Remove String::operator+=() from windows platform code
https://bugs.webkit.org/show_bug.cgi?id=95904

Attachment 162354: Patch
https://bugs.webkit.org/attachment.cgi?id=162354&action=review

------- Additional Comments from Benjamin Poulain <benjamin at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=162354&action=review


> Source/WebCore/platform/win/ClipboardWin.cpp:150
> -    String result(static_cast<UChar*>(fsPathBuffer));
> -    result += String(extension);
> -    return result;
> +    return String(static_cast<UChar*>(fsPathBuffer)) + extension;

I think you'd better use makeString(static_cast<UChar*>(fsPathBuffer),
extension).

> Source/WebKit/win/AccessibleBase.cpp:377
> -	       accessKeyModifiers += "Ctrl+";
> +	       accessKeyModifiersBuilder.append("Ctrl+");
>	   if (modifiers & PlatformEvent::AltKey)
> -	       accessKeyModifiers += "Alt+";
> +	       accessKeyModifiersBuilder.append("Alt+");
>	   if (modifiers & PlatformEvent::ShiftKey)
> -	       accessKeyModifiers += "Shift+";
> +	       accessKeyModifiersBuilder.append("Shift+");
>	   if (modifiers & PlatformEvent::MetaKey)
> -	       accessKeyModifiers += "Win+";
> +	       accessKeyModifiersBuilder.append("Win+");

append() -> appendLiteral()

> Source/WebKit/win/ChangeLog:15
> +	   (if):

Confused prepare-ChangeLog is confused

> Source/WebKit/win/WebView.cpp:5549
> +	       result.append(", "); \

appendLiteral()

> Source/WebKit/win/WebView.cpp:5550
> +	   result.append(#name); \

appendLiteral()

> Source/WebKit/win/WebView.cpp:-5561
> -    if (lparam & GCS_COMPATTR) {
> -	   result = "GCS_COMPATTR";
> -	   needsComma = true;
> -    }

This is strange, but I can't figure why this code is there.
Maybe needsComma was not in APPEND_ARGUMENT_NAME originally.

> Source/WebKit2/UIProcess/win/WebView.cpp:1245
> +	       result.append(", "); \
> +	   result.append(#name); \

appendLiteral().


More information about the webkit-reviews mailing list