diff options
author | Kevin Albertson <kevin.albertson@10gen.com> | 2015-07-16 12:43:40 -0400 |
---|---|---|
committer | Kevin Albertson <kevin.albertson@10gen.com> | 2015-07-16 18:23:37 -0400 |
commit | 17816e5251cd9765cca2a30caf60a1aff0fe2538 (patch) | |
tree | 45abf6cbe2a7fe394d51c9dc54843e87ea55dec5 /src/mongo/db/index_legacy.cpp | |
parent | ad9ffd74d9febd91fd5bec1807d64728699808d5 (diff) | |
download | mongo-17816e5251cd9765cca2a30caf60a1aff0fe2538.tar.gz |
Change to std::string on files depending on s2
Diffstat (limited to 'src/mongo/db/index_legacy.cpp')
-rw-r--r-- | src/mongo/db/index_legacy.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/index_legacy.cpp b/src/mongo/db/index_legacy.cpp index ca6a97ce3e9..e9d19cc511d 100644 --- a/src/mongo/db/index_legacy.cpp +++ b/src/mongo/db/index_legacy.cpp @@ -28,6 +28,8 @@ #include "mongo/db/index_legacy.h" +#include <string> + #include "mongo/db/client.h" #include "mongo/db/fts/fts_spec.h" #include "mongo/db/index/expression_keys_private.h" @@ -39,7 +41,7 @@ namespace mongo { // static BSONObj IndexLegacy::adjustIndexSpecObject(const BSONObj& obj) { - string pluginName = IndexNames::findPluginName(obj.getObjectField("key")); + std::string pluginName = IndexNames::findPluginName(obj.getObjectField("key")); if (IndexNames::TEXT == pluginName) { return fts::FTSSpec::fixSpec(obj); @@ -57,7 +59,7 @@ BSONObj IndexLegacy::getMissingField(OperationContext* txn, Collection* collection, const BSONObj& infoObj) { BSONObj keyPattern = infoObj.getObjectField("key"); - string accessMethodName; + std::string accessMethodName; if (collection) accessMethodName = collection->getIndexCatalog()->getAccessMethodName(txn, keyPattern); else |