diff options
author | Tor Egge <Tor.Egge@oath.com> | 2018-04-04 12:10:03 +0000 |
---|---|---|
committer | Tor Egge <Tor.Egge@oath.com> | 2018-04-04 12:10:03 +0000 |
commit | 84d607040b1df3b151aabb226122bc2d29f2d74a (patch) | |
tree | 522c49448239ab6b0bb7f65f6298336141504fb5 /document | |
parent | ba15c218cdd80d54e8e77fbc4b894605cb704a64 (diff) |
Add comment for document::DocumentTypeRepoFactory::make method.
Diffstat (limited to 'document')
-rw-r--r-- | document/src/vespa/document/repo/document_type_repo_factory.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/document/src/vespa/document/repo/document_type_repo_factory.h b/document/src/vespa/document/repo/document_type_repo_factory.h index 0c8eecb035d..e104fe1f6a0 100644 --- a/document/src/vespa/document/repo/document_type_repo_factory.h +++ b/document/src/vespa/document/repo/document_type_repo_factory.h @@ -39,6 +39,10 @@ class DocumentTypeRepoFactory { static void deleteRepo(DocumentTypeRepo *repoRawPtr) noexcept; public: + /* + * Since same instance is returned for equal config, we return a shared + * pointer to a const repo. The repo should be considered immutable. + */ static std::shared_ptr<const DocumentTypeRepo> make(const DocumenttypesConfig &config); }; |