projects
/
zxing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Throw the actual exception objects, rather than pointers to them, i.e.:
[zxing.git]
/
cpp
/
core
/
tests
/
src
/
common
/
BlackPointEstimatorTest.cpp
diff --git
a/cpp/core/tests/src/common/BlackPointEstimatorTest.cpp
b/cpp/core/tests/src/common/BlackPointEstimatorTest.cpp
index
350b17a
..
a49df7c
100644
(file)
--- a/
cpp/core/tests/src/common/BlackPointEstimatorTest.cpp
+++ b/
cpp/core/tests/src/common/BlackPointEstimatorTest.cpp
@@
-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;
}
}
}