Skip to content

Commit

Permalink
Merge pull request #32754 from vespa-engine/toregge/deinline-document…
Browse files Browse the repository at this point in the history
…-type-repo-entry-constructor

Deinline document type repo entry constructor.
  • Loading branch information
geirst authored Nov 4, 2024
2 parents 0771e8e + b9c30ea commit 0070627
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ EmptyFactoryCheck emptyFactoryCheck;

}

DocumentTypeRepoFactory::DocumentTypeRepoEntry::DocumentTypeRepoEntry(std::weak_ptr<const DocumentTypeRepo> repo_in,
std::unique_ptr<const DocumenttypesConfig> config_in)
: repo(std::move(repo_in)),
config(std::move(config_in))
{
}

DocumentTypeRepoFactory::DocumentTypeRepoEntry::~DocumentTypeRepoEntry() = default;

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ class DocumentTypeRepoFactory {
std::unique_ptr<const DocumenttypesConfig> config;

DocumentTypeRepoEntry(std::weak_ptr<const DocumentTypeRepo> repo_in,
std::unique_ptr<const DocumenttypesConfig> config_in)
: repo(std::move(repo_in)),
config(std::move(config_in))
{
}
std::unique_ptr<const DocumenttypesConfig> config_in);
DocumentTypeRepoEntry(DocumentTypeRepoEntry &&) = default;
~DocumentTypeRepoEntry();
};
Expand Down

0 comments on commit 0070627

Please sign in to comment.