shithub: libvpx

Download patch

ref: 6dcd9b37eafa9f333efbcdc4c33e4e5d11480521
parent: 8aa4ee1f100efc6caf811a4e8c95b4c7aa5b6718
parent: 92373a5bb23b1d819ad3472b8f8594e351ba9465
author: Johann Koenig <[email protected]>
date: Fri Jun 9 16:42:39 EDT 2017

Merge "idct_test: don't use std::nothrow anymore"

--- a/test/idct_test.cc
+++ b/test/idct_test.cc
@@ -30,11 +30,14 @@
   virtual void SetUp() {
     UUT = GetParam();
 
-    input = new (std::nothrow) Buffer<int16_t>(4, 4, 0);
+    input = new Buffer<int16_t>(4, 4, 0);
+    ASSERT_TRUE(input != NULL);
     ASSERT_TRUE(input->Init());
-    predict = new (std::nothrow) Buffer<uint8_t>(4, 4, 3);
+    predict = new Buffer<uint8_t>(4, 4, 3);
+    ASSERT_TRUE(predict != NULL);
     ASSERT_TRUE(predict->Init());
-    output = new (std::nothrow) Buffer<uint8_t>(4, 4, 3);
+    output = new Buffer<uint8_t>(4, 4, 3);
+    ASSERT_TRUE(output != NULL);
     ASSERT_TRUE(output->Init());
   }