* Throw the actual exception objects, rather than pointers to them, i.e.:
[zxing.git] / cpp / core / tests / src / qrcode / decoder / ErrorCorrectionLevelTest.cpp
index 7af8a8a..f5e7486 100644 (file)
@@ -40,9 +40,8 @@ namespace qrcode {
         ErrorCorrectionLevel::forBits(4);
         CPPUNIT_FAIL("should have thrown an exception");
       }
-      catch (ReaderException *ex) {
+      catch (ReaderException ex) {
         // expected
-        delete ex;
       }
     }
   }