diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-04-04 11:45:55 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-04-04 11:45:55 +0000 |
commit | 8cfeaeba255ccea54f8345724e72adf53280e33d (patch) | |
tree | 711593ee26f3688371e0b0ae948247df22ee54d0 /searchcore/src/tests/proton/documentdb/documentdbconfig | |
parent | 7902239839a6f34e12ed7aa0f2b7a65114f8ee68 (diff) |
Stop using nested typedef for shared pointer to const DocumentTypeRepo.
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/documentdbconfig')
-rw-r--r-- | searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp b/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp index 17353f89fd2..df01ae0fc02 100644 --- a/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp +++ b/searchcore/src/tests/proton/documentdb/documentdbconfig/documentdbconfig_test.cpp @@ -30,7 +30,7 @@ const vespalib::string type_name = "test"; const vespalib::string header_name = type_name + ".header"; const vespalib::string body_name = type_name + ".body"; -DocumentTypeRepo::SP +std::shared_ptr<const DocumentTypeRepo> makeDocTypeRepo(bool hasField) { DocumenttypesConfigBuilderHelper builder; @@ -49,7 +49,7 @@ private: test::DocumentDBConfigBuilder _builder; public: - MyConfigBuilder(int64_t generation, const Schema::SP &schema, const DocumentTypeRepo::SP &repo) + MyConfigBuilder(int64_t generation, const Schema::SP &schema, const std::shared_ptr<const DocumentTypeRepo> &repo) : _builder(generation, schema, "client", "test") { _builder.repo(repo); @@ -101,7 +101,7 @@ public: struct Fixture { Schema::SP schema; - DocumentTypeRepo::SP repo; + std::shared_ptr<const DocumentTypeRepo> repo; ConfigSP basicCfg; ConfigSP fullCfg; ConfigSP replayCfg; |