WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
47698
[EFL] REGRESSION(69798) UCHAR can't be converted to String.
https://bugs.webkit.org/show_bug.cgi?id=47698
Summary
[EFL] REGRESSION(69798) UCHAR can't be converted to String.
Ryuan Choi
Reported
2010-10-14 16:25:55 PDT
/workspace/webkit/WebCore/platform/efl/PlatformKeyboardEventEfl.cpp: In function ‘void WebCore::createWindowsKeyMap()’: /workspace/webkit/WebCore/platform/efl/PlatformKeyboardEventEfl.cpp:136:32: error: conversion from ‘UChar’ to ‘WTF::String’ is ambiguous /workspace/webkit/JavaScriptCore/wtf/text/WTFString.h:312:5: note: candidates are: WTF::String::String(WTF::HashTableDeletedValueType) <near match> /workspace/webkit/JavaScriptCore/wtf/text/WTFString.h:96:5: note: WTF::String::String(WTF::StringImpl*) <near match> /workspace/webkit/JavaScriptCore/wtf/text/WTFString.h:93:5: note: WTF::String::String(const char*) <near match> /workspace/webkit/JavaScriptCore/wtf/text/WTFString.h:87:5: note: WTF::String::String(const UChar*) <near match>
Attachments
Patch
(2.85 KB, patch)
2010-10-14 17:04 PDT
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Patch
(1.36 KB, patch)
2010-10-15 04:46 PDT
,
Ryuan Choi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ryuan Choi
Comment 1
2010-10-14 17:04:29 PDT
Created
attachment 70804
[details]
Patch
Nikolas Zimmermann
Comment 2
2010-10-15 01:42:55 PDT
Comment on
attachment 70804
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=70804&action=review
Sorry, I wasn't aware EFL builds is broken. I checked the efl EWS bubble and it was green. Don't you actually build patches?
> JavaScriptCore/wtf/text/WTFString.h:139 > + static String character(char);
This should be avoided.
> WebCore/platform/efl/PlatformKeyboardEventEfl.cpp:134 > String alphabet = "abcdefghijklmnopqrstuvwxyz";
I suggest changing this to: char alphabet[] = "abc...";
> WebCore/platform/efl/PlatformKeyboardEventEfl.cpp:136 > + String key = String::character(static_cast<char>(alphabet[i]));
Then use: String key(alphabet + i, 1); here.
Ryuan Choi
Comment 3
2010-10-15 04:46:15 PDT
Created
attachment 70852
[details]
Patch
Nikolas Zimmermann
Comment 4
2010-10-15 04:51:14 PDT
Comment on
attachment 70852
[details]
Patch Thanks a lot, this is it :-)
WebKit Commit Bot
Comment 5
2010-10-15 05:11:55 PDT
The commit-queue encountered the following flaky tests while processing
attachment 70852
[details]
: [u'http/tests/websocket/tests/close-on-navigate-new-location.html', u'http/tests/appcache/credential-url.html'] Please file bugs against the tests. The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 6
2010-10-15 05:23:45 PDT
Comment on
attachment 70852
[details]
Patch Clearing flags on attachment: 70852 Committed
r69849
: <
http://trac.webkit.org/changeset/69849
>
WebKit Commit Bot
Comment 7
2010-10-15 05:23:52 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug