diff options
author | nsofya <nsofya@yandex-team.ru> | 2022-02-10 16:49:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:52 +0300 |
commit | 2ea6d2c7415473747379b1c65468241b431057ad (patch) | |
tree | 667f873e5a94ca0042984be80442f34aac887f7d /library/cpp/object_factory | |
parent | edee5b99e1eec042f46725b89dcd81ea7e41d663 (diff) | |
download | ydb-2ea6d2c7415473747379b1c65468241b431057ad.tar.gz |
Restoring authorship annotation for <nsofya@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/object_factory')
-rw-r--r-- | library/cpp/object_factory/object_factory.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/object_factory/object_factory.h b/library/cpp/object_factory/object_factory.h index 96cc11bcfd..a25e342d10 100644 --- a/library/cpp/object_factory/object_factory.h +++ b/library/cpp/object_factory/object_factory.h @@ -113,7 +113,7 @@ namespace NObjectFactory { return keysStr; } - static TProduct* Construct(const TKey& key, const TKey& defKey) { + static TProduct* Construct(const TKey& key, const TKey& defKey) { TProduct* result = Singleton<TObjectFactory<TProduct, TKey>>()->Create(key); if (!result && !!defKey) { result = Singleton<TObjectFactory<TProduct, TKey>>()->Create(defKey); @@ -121,11 +121,11 @@ namespace NObjectFactory { return result; } - static TProduct* Construct(const TKey& key) { - TProduct* result = Singleton<TObjectFactory<TProduct, TKey>>()->Create(key); - return result; - } - + static TProduct* Construct(const TKey& key) { + TProduct* result = Singleton<TObjectFactory<TProduct, TKey>>()->Create(key); + return result; + } + static THolder<TProduct> VerifiedConstruct(const TKey& key) { auto result = MakeHolder(key); Y_VERIFY(result, "Construct by factory failed"); @@ -141,7 +141,7 @@ namespace NObjectFactory { return Singleton<TObjectFactory<TProduct, TKey>>()->HasImpl(key); } - static void GetRegisteredKeys(TSet<TKey>& keys) { + static void GetRegisteredKeys(TSet<TKey>& keys) { return Singleton<TObjectFactory<TProduct, TKey>>()->GetKeys(keys); } |