diff options
author | agorodilov <[email protected]> | 2022-02-10 16:47:09 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:09 +0300 |
commit | bd5ef432f5cfb1e18851381329d94665a4c22470 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /util/system/dynlib.h | |
parent | 7a4979e6211c3e78c7f9041d4a9e5d3405343c36 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/dynlib.h')
-rw-r--r-- | util/system/dynlib.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/system/dynlib.h b/util/system/dynlib.h index c590209c284..66eaf4a5c1c 100644 --- a/util/system/dynlib.h +++ b/util/system/dynlib.h @@ -49,12 +49,12 @@ private: public: TExternalSymbol() noexcept { - PLib = nullptr; - DLib = nullptr; + PLib = nullptr; + DLib = nullptr; } TExternalSymbol(const TExternalSymbol& es) { - PLib = nullptr; - DLib = nullptr; + PLib = nullptr; + DLib = nullptr; if (es.IsDynamic()) Open(es.LibName().data(), es.VtblName().data()); else if (es.IsStatic()) @@ -75,7 +75,7 @@ public: } // set the symbol from dynamic source void Open(const char* lib_name, const char* vtbl_name) { - if (DLib != nullptr || PLib != nullptr) + if (DLib != nullptr || PLib != nullptr) return; try { DLib = new TDynamicLibrary(); @@ -83,7 +83,7 @@ public: PLib = (TLib*)DLib->Sym(vtbl_name); } catch (...) { delete DLib; - DLib = nullptr; + DLib = nullptr; throw; } lname = lib_name; @@ -91,7 +91,7 @@ public: } // set the symbol from static source void SetSym(TLib* pl) noexcept { - if (DLib == nullptr && PLib == nullptr) + if (DLib == nullptr && PLib == nullptr) PLib = pl; } void Close() noexcept { @@ -111,9 +111,9 @@ public: return vname; } bool IsStatic() const noexcept { - return DLib == nullptr && PLib != nullptr; + return DLib == nullptr && PLib != nullptr; } bool IsDynamic() const noexcept { - return DLib && DLib->IsLoaded() && PLib != nullptr; + return DLib && DLib->IsLoaded() && PLib != nullptr; } }; |