RESOLVED FIXED Bug 154680
HashMap::ensure() should return an AddResult like all the other add-like functions
https://bugs.webkit.org/show_bug.cgi?id=154680
Summary HashMap::ensure() should return an AddResult like all the other add-like func...
Sam Weinig
Reported 2016-02-25 09:47:57 PST
HashMap::ensure() should return an AddResult like all the other add-like functitions
Attachments
Patch (7.10 KB, patch)
2016-02-25 10:09 PST, Sam Weinig
andersca: review+
Sam Weinig
Comment 1 2016-02-25 10:09:57 PST
WebKit Commit Bot
Comment 2 2016-02-25 10:11:35 PST
Attachment 272211 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp:515: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp:519: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp:530: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp:534: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp:545: More than one command on the same line [whitespace/newline] [4] ERROR: Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp:550: More than one command on the same line [whitespace/newline] [4] Total errors found: 6 in 4 files If any of these errors are false positives, please file a bug against check-webkit-style.
Sam Weinig
Comment 3 2016-02-25 11:28:35 PST
Darin Adler
Comment 4 2016-02-25 14:20:55 PST
Comment on attachment 272211 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=272211&action=review > Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp:547 > + EXPECT_EQ(1u, *addResult.iterator->value.get()); No need for get(). > Tools/TestWebKitAPI/Tests/WTF/HashMap.cpp:552 > + EXPECT_EQ(1u, *addResult2.iterator->value.get()); No need for get().
Note You need to log in before you can comment on or make changes to this bug.