summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeert Bosch <geert@mongodb.com>2016-04-22 15:34:23 -0400
committerGeert Bosch <geert@mongodb.com>2016-04-22 15:34:54 -0400
commit64258ac8a6b272367d3692f3f28bb356f96dcb5a (patch)
tree96645966f042110a15db81bdfb23cc2936337b9a
parent0faa91edf5af990b247e4d8af7770005a6185695 (diff)
downloadmongo-64258ac8a6b272367d3692f3f28bb356f96dcb5a.tar.gz
Fix lintr3.3.5
-rw-r--r--src/mongo/bson/bson_validate.h4
-rw-r--r--src/mongo/bson/bsontypes.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/bson/bson_validate.h b/src/mongo/bson/bson_validate.h
index 19d7cba52eb..a40d9368ed1 100644
--- a/src/mongo/bson/bson_validate.h
+++ b/src/mongo/bson/bson_validate.h
@@ -44,6 +44,8 @@ class Status;
* this is NOT the bson size, but how far we know the buffer is valid
* @param version - newest version to accept
*/
-Status validateBSON(const char* buf, uint64_t maxLength, BSONVersion version = BSONVersion::kLatest);
+Status validateBSON(const char* buf,
+ uint64_t maxLength,
+ BSONVersion version = BSONVersion::kLatest);
} // namespace mongo
diff --git a/src/mongo/bson/bsontypes.h b/src/mongo/bson/bsontypes.h
index 6fb3c0a2564..ebc790cd4b5 100644
--- a/src/mongo/bson/bsontypes.h
+++ b/src/mongo/bson/bsontypes.h
@@ -51,7 +51,7 @@ extern const BSONObj kMinBSONKey;
/**
determines BSON types considered valid by validate
*/
-enum class BSONVersion { kV1_0, kV1_1, kLatest = kV1_1 };
+enum class BSONVersion { kV1_0, kV1_1, kLatest = kV1_1 };
// Flag that determines whether we should accept decimal types in object validation, and default
// to KeyString V1 indexes on non-MMAP storage engines. Set by enableBSON1_1 server parameter.