diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 02:43:29 +0100 |
commit | 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (patch) | |
tree | 62cf542c68d91aa6f7a4e3bfa9eddca4ab352970 /src/T2DLL/T2TenantMemberTableDef.cpp | |
parent | c0c336500955a23e344651e5412c9d9d441ef4ee (diff) | |
download | t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.tar.gz t2win-5c6a48b2ff362a70416a6a00fda7d06e0f276f2d.zip |
i am in hell
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2TenantMemberTableDef.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/T2DLL/T2TenantMemberTableDef.cpp b/src/T2DLL/T2TenantMemberTableDef.cpp index 780ea02..10c0b82 100644 --- a/src/T2DLL/T2TenantMemberTableDef.cpp +++ b/src/T2DLL/T2TenantMemberTableDef.cpp @@ -125,21 +125,21 @@ BOOL T2TenantMemberTableDef::IsCollectFromPool(T2TowerDoc* towerDoc) const { BOOL result = true; if (mPlaceParamDef) { - float rate = mPlaceParamDef->GetRate(T2PlaceParamDef::Place_0); - if (UT2Utils::Float2Int(rate) == 0) + float theRate = mPlaceParamDef->GetRate(T2PlaceParamDef::Place_0); + if (UT2Utils::Float2Int(theRate) == 0) result = false; } if (result && mDayParamDef) { - T2DayParamDef::EDay day = T2DayParamDef::Day_0; - T2DayParamDef::EWhether whether = T2DayParamDef::Whether_0; + T2DayParamDef::EDay theDay = T2DayParamDef::Day_0; + T2DayParamDef::EWhether theWhether = T2DayParamDef::Whether_0; - T2DateTime *now = towerDoc->towerDoc_vf120(); - if (now->IsHoliday(towerDoc)) - day = T2DayParamDef::Day_1; + T2DateTime *theNow = towerDoc->towerDoc_vf120(); + if (theNow->IsHoliday(towerDoc)) + theDay = T2DayParamDef::Day_1; - float rate = mDayParamDef->GetRate(day, whether); - if (UT2Utils::Float2Int(rate) == 0) + float theRate = mDayParamDef->GetRate(theDay, theWhether); + if (UT2Utils::Float2Int(theRate) == 0) result = false; } @@ -157,49 +157,49 @@ BOOL T2TenantMemberTableDef::IsCollectFromTenant() const { } T2DayParamDef* T2TenantMemberTableDef::MakeDayParamDef(HINSTANCE instance, int resID) { - T2DayParamDef *result = NULL; + T2DayParamDef *theDef = NULL; CResFile resFile; if (resFile.OpenResource(instance, resID, 'DpDf')) { - result = new T2DayParamDef(resFile); + theDef = new T2DayParamDef(resFile); resFile.End(); } - return result; + return theDef; } T2DayParamDef* T2TenantMemberTableDef::MakeDayParamDef(const char* path, int resID) { - T2DayParamDef *result = NULL; + T2DayParamDef *theDef = NULL; CResFile resFile; if (resFile.OpenResource(path, resID, 'DPDF')) { - result = new T2DayParamDef(resFile); + theDef = new T2DayParamDef(resFile); resFile.End(); } - return result; + return theDef; } T2PlaceParamDef* T2TenantMemberTableDef::MakePlaceParamDef(HINSTANCE instance, int resID) { - T2PlaceParamDef *result = NULL; + T2PlaceParamDef *theDef = NULL; CResFile resFile; if (resFile.OpenResource(instance, resID, 'PlDf')) { - result = new T2PlaceParamDef(resFile); + theDef = new T2PlaceParamDef(resFile); resFile.End(); } - return result; + return theDef; } T2PlaceParamDef* T2TenantMemberTableDef::MakePlaceParamDef(const char* path, int resID) { - T2PlaceParamDef *result = NULL; + T2PlaceParamDef *theDef = NULL; CResFile resFile; if (resFile.OpenResource(path, resID, 'PLDF')) { - result = new T2PlaceParamDef(resFile); + theDef = new T2PlaceParamDef(resFile); resFile.End(); } - return result; + return theDef; } |