summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDwight <dmerriman@gmail.com>2009-02-10 12:40:17 -0500
committerDwight <dmerriman@gmail.com>2009-02-10 12:40:17 -0500
commit3f143e4e64d0d5adedd77b0af6a59d3338e8430b (patch)
treeb06f20a54321f4494475f5687cdfb93454056300
parent4ab67f0e7ec75ac20c574b8cb986b18abe305e56 (diff)
downloadmongo-3f143e4e64d0d5adedd77b0af6a59d3338e8430b.tar.gz
elim compile warning
-rw-r--r--db/db.sln1
-rw-r--r--db/jsobj.cpp2
-rw-r--r--db/jsobj.h2
3 files changed, 2 insertions, 3 deletions
diff --git a/db/db.sln b/db/db.sln
index e12ae953199..eb4ccfc7a09 100644
--- a/db/db.sln
+++ b/db/db.sln
@@ -10,7 +10,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "examples", "examples", "{40
..\client\examples\authTest.cpp = ..\client\examples\authTest.cpp
..\client\examples\clientTest.cpp = ..\client\examples\clientTest.cpp
..\client\examples\first.cpp = ..\client\examples\first.cpp
- ..\client\gridfs.cpp = ..\client\gridfs.cpp
..\client\gridfs.h = ..\client\gridfs.h
..\client\examples\second.cpp = ..\client\examples\second.cpp
..\client\examples\tutorial.cpp = ..\client\examples\tutorial.cpp
diff --git a/db/jsobj.cpp b/db/jsobj.cpp
index 855e4e34dbf..fdc569cb980 100644
--- a/db/jsobj.cpp
+++ b/db/jsobj.cpp
@@ -1096,5 +1096,5 @@ namespace mongo {
Labeler::Label LTE( "$lte" );
Labeler::Label NE( "$ne" );
Labeler::Label IN( "$in" );
-
+
} // namespace mongo
diff --git a/db/jsobj.h b/db/jsobj.h
index 9337be5bcd7..19390362480 100644
--- a/db/jsobj.h
+++ b/db/jsobj.h
@@ -774,7 +774,7 @@ namespace mongo {
*/
void endField( const char *nextFieldName = 0 );
- bool subobjStarted() const { return _fieldName; }
+ bool subobjStarted() const { return _fieldName != 0; }
private:
const char * _fieldName;