summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-06-04 23:39:33 -0400
committerEliot Horowitz <eliot@10gen.com>2012-06-04 23:41:32 -0400
commit65e59a86036e57c0dbe6ea5f0999a14f7c12e9ad (patch)
treed346216fa63fc87aa2ea364947cc08e153d5b0b8 /src/mongo/db/dbhelpers.h
parentd602f15f5529ab8b5f104bb9d30ab6255db96985 (diff)
downloadmongo-65e59a86036e57c0dbe6ea5f0999a14f7c12e9ad.tar.gz
use StringData instead of char* for cleaner calling
Diffstat (limited to 'src/mongo/db/dbhelpers.h')
-rw-r--r--src/mongo/db/dbhelpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/dbhelpers.h b/src/mongo/db/dbhelpers.h
index 0ab62dc38a3..2a872675121 100644
--- a/src/mongo/db/dbhelpers.h
+++ b/src/mongo/db/dbhelpers.h
@@ -62,8 +62,8 @@ namespace mongo {
@return true if object found
*/
- static bool findOne(const char *ns, const BSONObj &query, BSONObj& result, bool requireIndex = false);
- static DiskLoc findOne(const char *ns, const BSONObj &query, bool requireIndex);
+ static bool findOne(const StringData& ns, const BSONObj &query, BSONObj& result, bool requireIndex = false);
+ static DiskLoc findOne(const StringData& ns, const BSONObj &query, bool requireIndex);
/**
* have to be locked already