diff options
author | Eliot Horowitz <eliot@10gen.com> | 2012-10-15 21:59:24 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2012-10-16 10:35:38 -0400 |
commit | 3e32f363eb493974f50fc6b4f5b300504c12f673 (patch) | |
tree | c168710319cfc01e6fbdd1dc34d37ff288a27254 /src/mongo/util/map_util.h | |
parent | 317272e1fee6d932c084df930f46fb2c669c1988 (diff) | |
download | mongo-3e32f363eb493974f50fc6b4f5b300504c12f673.tar.gz |
fix whitespace/indent and turn on
Diffstat (limited to 'src/mongo/util/map_util.h')
-rw-r--r-- | src/mongo/util/map_util.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/util/map_util.h b/src/mongo/util/map_util.h index 33579f4ede1..c2d3d921bf5 100644 --- a/src/mongo/util/map_util.h +++ b/src/mongo/util/map_util.h @@ -24,10 +24,10 @@ namespace mongo { */ template <typename M, typename K, typename V> V mapFindWithDefault(const M& myMap, const K& key, const V& defaultValue) { - typename M::const_iterator it = myMap.find(key); - if(it == myMap.end()) - return defaultValue; - return it->second; + typename M::const_iterator it = myMap.find(key); + if(it == myMap.end()) + return defaultValue; + return it->second; } } // end namespace |