summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils_extended.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2012-04-08 13:21:33 -0700
committerAaron <aaron@10gen.com>2012-04-10 20:21:51 -0700
commitcaed163e648d31c50c2b80ec99cface928f94b7a (patch)
tree775407ba1842d7fd19713009f4edce7600cc214c /src/mongo/shell/shell_utils_extended.cpp
parent2684b7b6dc10663b8908c08fa167c1d0d13126c8 (diff)
downloadmongo-caed163e648d31c50c2b80ec99cface928f94b7a.tar.gz
Rename helpers to singleArg() and undefinedReturn.
Diffstat (limited to 'src/mongo/shell/shell_utils_extended.cpp')
-rw-r--r--src/mongo/shell/shell_utils_extended.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/shell/shell_utils_extended.cpp b/src/mongo/shell/shell_utils_extended.cpp
index a665e14c9b8..9844595cc42 100644
--- a/src/mongo/shell/shell_utils_extended.cpp
+++ b/src/mongo/shell/shell_utils_extended.cpp
@@ -115,7 +115,7 @@ namespace mongo {
const int CANT_OPEN_FILE = 13300;
BSONObj cat(const BSONObj& args, void* data) {
- BSONElement e = oneArg(args);
+ BSONElement e = singleArg(args);
stringstream ss;
ifstream f(e.valuestrsafe());
uassert(CANT_OPEN_FILE, "couldn't open file", f.is_open() );
@@ -134,7 +134,7 @@ namespace mongo {
}
BSONObj md5sumFile(const BSONObj& args, void* data) {
- BSONElement e = oneArg(args);
+ BSONElement e = singleArg(args);
stringstream ss;
FILE* f = fopen(e.valuestrsafe(), "rb");
uassert(CANT_OPEN_FILE, "couldn't open file", f );
@@ -160,7 +160,7 @@ namespace mongo {
}
BSONObj removeFile(const BSONObj& args, void* data) {
- BSONElement e = oneArg(args);
+ BSONElement e = singleArg(args);
bool found = false;
boost::filesystem::path root( e.valuestrsafe() );
@@ -189,7 +189,7 @@ namespace mongo {
c = ~c;
f->write( args.getIntField( "1" ), &c, 1 );
- return undefined_;
+ return undefinedReturn;
// f close is implicit
}