projects
/
zxing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Began removing the excessive use of exceptions in the 1D readers by drawing
[zxing.git]
/
cpp
/
core
/
src
/
zxing
/
common
/
Counted.h
diff --git
a/cpp/core/src/zxing/common/Counted.h
b/cpp/core/src/zxing/common/Counted.h
index
f79b5d8
..
306ed6c
100644
(file)
--- a/
cpp/core/src/zxing/common/Counted.h
+++ b/
cpp/core/src/zxing/common/Counted.h
@@
-193,6
+193,10
@@
public:
return x == 0 ? object_ != 0 : true;
}
+ bool empty() const {
+ return object_ == 0;
+ }
+
template<class Y>
friend std::ostream& operator<<(std::ostream &out, Ref<Y>& ref);
};