NEW147888
Remove UnspecifiedBoolType from WTF
https://bugs.webkit.org/show_bug.cgi?id=147888
Summary Remove UnspecifiedBoolType from WTF
Keith Miller
Reported 2015-08-11 11:43:08 PDT
We still use the safe bool idiom (UnspecifiedBoolType) from pre C++11 in WTF. We should replace the safe bool idiom with explicit bool() instead.
Attachments
Patch (60.55 KB, patch)
2015-08-11 11:55 PDT, Keith Miller
no flags
Patch (59.68 KB, patch)
2015-08-17 20:24 PDT, Keith Miller
ggaren: review-
Patch (67.78 KB, patch)
2015-08-18 15:26 PDT, Keith Miller
ggaren: review+
commit-queue: commit-queue-
Keith Miller
Comment 1 2015-08-11 11:55:19 PDT
Keith Miller
Comment 2 2015-08-17 20:24:04 PDT
Created attachment 259227 [details] Patch rebased so it should, hopefully, apply.
WebKit Commit Bot
Comment 3 2015-08-17 20:25:55 PDT
Attachment 259227 [details] did not pass style-queue: ERROR: Source/WTF/wtf/RetainPtr.h:31: Streams are highly discouraged. [readability/streams] [3] Total errors found: 1 in 66 files If any of these errors are false positives, please file a bug against check-webkit-style.
Geoffrey Garen
Comment 4 2015-08-18 10:16:57 PDT
Comment on attachment 259227 [details] Patch EWS still angry
Keith Miller
Comment 5 2015-08-18 15:26:52 PDT
Created attachment 259304 [details] Patch Let's try this again...
Geoffrey Garen
Comment 6 2015-08-18 15:51:45 PDT
Comment on attachment 259304 [details] Patch I shed a single tear over all this !! nonsense. I do not not dislike it.
WebKit Commit Bot
Comment 7 2015-08-18 16:45:33 PDT
Comment on attachment 259304 [details] Patch Rejecting attachment 259304 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-01', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: a -c /Volumes/Data/EWS/WebKit/Source/WebCore/loader/archive/ArchiveResource.cpp -o /Volumes/Data/EWS/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/ArchiveResource.o ** BUILD FAILED ** The following build commands failed: CompileC /Volumes/Data/EWS/WebKit/WebKitBuild/WebCore.build/Release/WebCore.build/Objects-normal/x86_64/ApplicationCacheGroup.o loader/appcache/ApplicationCacheGroup.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Full output: http://webkit-queues.webkit.org/results/73245
Keith Rollin
Comment 8 2017-01-30 17:25:21 PST
What's the status of this bug? Did Geoff scare off Keith? I saw the use of UnspecifiedBoolType in the sources and thought I'd get rid of it. But first I checked to see if there was any reason recorded for not not keeping it. That brought me to this bug. Is there any reason to not not not move forward with it?
Note You need to log in before you can comment on or make changes to this bug.