summaryrefslogtreecommitdiff
path: root/src/mongo/bson
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-09-30 10:29:44 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2015-09-30 17:52:38 -0400
commit97128797aa2d5169ca2e7f1cc6795955857803d7 (patch)
tree966c89761b8711ebf0bd34780a55af9b9a4c2f32 /src/mongo/bson
parentc1547dacbf3f4e70aa7fda94f9a9e71f5119e1d0 (diff)
downloadmongo-97128797aa2d5169ca2e7f1cc6795955857803d7.tar.gz
SERVER-20676 Rename global min/maxKey variables to kMin/kMaxBSONKey
Diffstat (limited to 'src/mongo/bson')
-rw-r--r--src/mongo/bson/bsontypes.cpp4
-rw-r--r--src/mongo/bson/bsontypes.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/bson/bsontypes.cpp b/src/mongo/bson/bsontypes.cpp
index 1e5895c3130..53dd4c685b8 100644
--- a/src/mongo/bson/bsontypes.cpp
+++ b/src/mongo/bson/bsontypes.cpp
@@ -34,10 +34,10 @@
namespace mongo {
const char kMaxKeyData[] = {7, 0, 0, 0, static_cast<char>(MaxKey), 0, 0};
-const BSONObj maxKey(kMaxKeyData);
+const BSONObj kMaxBSONKey(kMaxKeyData);
const char kMinKeyData[] = {7, 0, 0, 0, static_cast<char>(MinKey), 0, 0};
-const BSONObj minKey(kMinKeyData);
+const BSONObj kMinBSONKey(kMinKeyData);
/* take a BSONType and return the name of that type as a char* */
const char* typeName(BSONType type) {
diff --git a/src/mongo/bson/bsontypes.h b/src/mongo/bson/bsontypes.h
index 62fcf5b8ac4..d13bdc0344c 100644
--- a/src/mongo/bson/bsontypes.h
+++ b/src/mongo/bson/bsontypes.h
@@ -45,8 +45,8 @@ class Ordering;
struct BSONArray; // empty subclass of BSONObj useful for overloading
struct BSONElementCmpWithoutField;
-extern const BSONObj maxKey;
-extern const BSONObj minKey;
+extern const BSONObj kMaxBSONKey;
+extern const BSONObj kMinBSONKey;
/**
the complete list of valid BSON types