summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/jsobjtests.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2017-08-01 14:47:28 -0400
committerMathias Stearn <mathias@10gen.com>2017-08-16 16:28:02 -0400
commit5a1b0681dcee481f631dc647000b895e20cc7cfd (patch)
tree57b1d42d0eb94750d3855cba6886700776022d31 /src/mongo/dbtests/jsobjtests.cpp
parentc593ea7bb9815ced064ad8aa7ffa206fa94757c4 (diff)
downloadmongo-5a1b0681dcee481f631dc647000b895e20cc7cfd.tar.gz
SERVER-30580 Eliminate DBException::getCode() in favor of code()
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r--src/mongo/dbtests/jsobjtests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp
index beef2906811..8d9cd48ff71 100644
--- a/src/mongo/dbtests/jsobjtests.cpp
+++ b/src/mongo/dbtests/jsobjtests.cpp
@@ -2296,7 +2296,7 @@ public:
ASSERT(!"Expected Throw");
} catch (const DBException& e) {
- if (e.getCode() != 13548) // we expect the code for oversized buffer
+ if (e.code() != 13548) // we expect the code for oversized buffer
throw;
}
}