diff options
author | Dwight <dmerriman@gmail.com> | 2008-07-17 16:45:35 -0400 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-07-17 16:45:35 -0400 |
commit | f0eb45a2b6b8ebb4b79ff269201303b10cb82132 (patch) | |
tree | 13e473c1777b8ec1d09b174c0ad384b89818307d /db | |
parent | 08bbcb55f286b76a56af94119f850e2385c96acd (diff) | |
parent | 1c54c09a288834822dedd4b42fbc807f3c620240 (diff) | |
download | mongo-f0eb45a2b6b8ebb4b79ff269201303b10cb82132.tar.gz |
Merge branch 'master' of ssh://git.10gen.com/data/gitroot/p
Conflicts:
db/jsobj.h
Diffstat (limited to 'db')
-rw-r--r-- | db/jsobj.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/db/jsobj.h b/db/jsobj.h index 746d211febd..f44b6246f63 100644 --- a/db/jsobj.h +++ b/db/jsobj.h @@ -174,14 +174,14 @@ class JSObj { friend class JSElemIter; class Details { public: - ~Details() {
- // note refCount means two different things (thus the assert here)
- assert(refCount <= 0);
- if (owned()) {
- free((void *)_objdata);
- }
- _objdata = 0;
- } + ~Details() { + // note refCount means two different things (thus the assert here) + assert(refCount <= 0); + if (owned()) { + free((void *)_objdata); + } + _objdata = 0; + } const char *_objdata; int _objsize; int refCount; // -1 == don't free @@ -445,15 +445,15 @@ class JSMatcher : boost::noncopyable { Element& toMatch, JSObj& obj, int compareOp, bool *deep, bool isArr = false); - struct element_lt
- {
- bool operator()(const Element& l, const Element& r) const
- {
+ struct element_lt + { + bool operator()(const Element& l, const Element& r) const + { int x = (int) l.type() - (int) r.type(); if( x < 0 ) return true; if( x > 0 ) return false; return compareElementValues(l,r) < 0; - }
+ } }; public: enum { |