X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a095f18afd3ffdc695ebe984a0ad0c74d61fd834..d12e0d85ae649d5c903a61c1150f4e6c48f96309:/projects/stargazer/admin_impl.cpp?ds=sidebyside diff --git a/projects/stargazer/admin_impl.cpp b/projects/stargazer/admin_impl.cpp index 3d2c4895..9788cec4 100644 --- a/projects/stargazer/admin_impl.cpp +++ b/projects/stargazer/admin_impl.cpp @@ -29,43 +29,27 @@ */ #include "admin_impl.h" + #include "stg/common.h" //----------------------------------------------------------------------------- ADMIN_IMPL::ADMIN_IMPL() - : ADMIN(), - conf(), - ip(0), - WriteServLog(GetStgLogger()) + : ip(0) { } //----------------------------------------------------------------------------- ADMIN_IMPL::ADMIN_IMPL(const ADMIN_CONF & ac) - : ADMIN(), - conf(ac), - ip(0), - WriteServLog(GetStgLogger()) + : conf(ac), + ip(0) { } //----------------------------------------------------------------------------- ADMIN_IMPL::ADMIN_IMPL(const PRIV & priv, const std::string & login, const std::string & password) - : ADMIN(), - conf(priv, login, password), - ip(0), - WriteServLog(GetStgLogger()) -{ -} -//----------------------------------------------------------------------------- -ADMIN_IMPL & ADMIN_IMPL::operator=(const ADMIN_IMPL & adm) + : conf(priv, login, password), + ip(0) { -if (&adm == this) - return *this; - -conf = adm.conf; -ip = adm.ip; -return *this; } //----------------------------------------------------------------------------- ADMIN_IMPL & ADMIN_IMPL::operator=(const ADMIN_CONF & ac)