Refactor CheckedArithmeticOperations.cpp to use templates instead of macros.
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Jun 2015 18:05:52 +0000 (18:05 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Jun 2015 18:05:52 +0000 (18:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=146103

Not reviewed.

Follow up to fix some typos not caught before original patch was landed.

* TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
(TestWebKitAPI::CheckedArithmeticTester::run):
(TestWebKitAPI::AllowMixedSignednessTest::run):
(TestWebKitAPI::IgnoreMixedSignednessTest::run):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@185711 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp

index ef11e35..a13371d 100644 (file)
@@ -1,3 +1,17 @@
+2015-06-18  Mark Lam  <mark.lam@apple.com>
+
+        Refactor CheckedArithmeticOperations.cpp to use templates instead of macros.
+        https://bugs.webkit.org/show_bug.cgi?id=146103
+
+        Not reviewed.
+
+        Follow up to fix some typos not caught before original patch was landed.
+
+        * TestWebKitAPI/Tests/WTF/CheckedArithmeticOperations.cpp:
+        (TestWebKitAPI::CheckedArithmeticTester::run):
+        (TestWebKitAPI::AllowMixedSignednessTest::run):
+        (TestWebKitAPI::IgnoreMixedSignednessTest::run):
+
 2015-06-18  Daniel Bates  <dabates@apple.com>
 
         Make webkitdirs::runGitUpdate() work when invoked in more than one Git checkout
index 1d93c9c..2a06400 100644 (file)
@@ -33,12 +33,12 @@ namespace TestWebKitAPI {
     { \
         typedef Coercer<type> CoercerType; \
         typedef MixedSignednessTester<type, CoercerType> MixedSignednessTesterType; \
-        CheckedArithmeticTester<type, CoercerType, MixedSignednessTesterType>(); \
+        CheckedArithmeticTester<type, CoercerType, MixedSignednessTesterType>::run(); \
     }
     
-#define coerceLiteral(x) Coerser::coerce(x)
+#define coerceLiteral(x) Coercer::coerce(x)
     
-template <typename type, typename Coerser, typename MixedSignednessTester>
+template <typename type, typename Coercer, typename MixedSignednessTester>
 class CheckedArithmeticTester {
 public:
     static void run()
@@ -125,7 +125,7 @@ public:
     }
 };
 
-template <typename type, typename Coerser>
+template <typename type, typename Coercer>
 class AllowMixedSignednessTest {
 public:
     static void run()
@@ -164,7 +164,7 @@ public:
     }
 };
 
-template <typename type, typename Coerser>
+template <typename type, typename Coercer>
 class IgnoreMixedSignednessTest {
 public:
     static void run() { }