From: Maxim Mamontov Date: Thu, 21 Apr 2011 12:59:02 +0000 (+0300) Subject: Replace properties in IsInetable with explicit use of variables X-Git-Tag: 2.407-p1~45 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/91b203a42eca5cc73fa1674f16ea3054f85327f8?hp=7150c0a4cb49637d12f466d059fcc0a306c5c072 Replace properties in IsInetable with explicit use of variables --- diff --git a/projects/stargazer/user_impl.cpp b/projects/stargazer/user_impl.cpp index d89bbe47..00063437 100644 --- a/projects/stargazer/user_impl.cpp +++ b/projects/stargazer/user_impl.cpp @@ -674,21 +674,21 @@ bool USER_IMPL::IsInetable() { //STG_LOCKER lock(&mutex, __FILE__, __LINE__); -if (disabled || passive) +if (disabled.ConstData() || passive.ConstData()) return false; if (settings->GetFreeMbAllowInet()) { - if (freeMb >= 0) + if (freeMb.ConstData() >= 0) return true; } if (settings->GetShowFeeInCash()) { - return (cash >= -credit); + return (cash.ConstData() >= -credit.ConstData()); } -return (cash - tariff->GetFee() >= -credit); +return (cash.ConstData() - tariff->GetFee() >= -credit.ConstData()); } //----------------------------------------------------------------------------- string USER_IMPL::GetEnabledDirs()