* Throw the actual exception objects, rather than pointers to them, i.e.:
[zxing.git] / cpp / core / tests / src / common / BlackPointEstimatorTest.cpp
index 350b17a..a49df7c 100644 (file)
@@ -41,9 +41,8 @@ namespace common {
       valarray<int> histogram(histogramRaw, 16);
       BlackPointEstimator::estimate(histogram);
       CPPUNIT_FAIL("Should have thrown an exception");
-    } catch (IllegalArgumentException* ie) {
+    } catch (IllegalArgumentException ie) {
       // good
-      delete ie;
     }
   }
 }