修改launcher/launcher/src/main/cpp/time_weather_view.cpp文件编译整改主干告警

消除141行G.FMT.05-CPP行宽不超过120个字符的告警

Signed-off-by: tongkai0808fh <tongkai5@huawei.com>
This commit is contained in:
tongkai0808fh
2024-04-25 08:41:28 +00:00
committed by Gitee
parent 0f9c8344ef
commit d54fe1bc85
@@ -138,7 +138,7 @@ void TimeWeatherView::GetWeekdayByYearday(int iY, int iM, int iD, char* date, in
iY--;
}
// 1 : MONDAY_LAUNCHER, 2 : TUESDAY_LAUNCHER, 3 : WEDNESDAY_LAUNCHER, 4 : , 5 : ect
iWeekDay = (iD + 1 + 2 * iM + 3 * (iM + 1) / 5 + iY + iY / 4 - iY / oneHundred + iY / fourHundred) % WEEKEND_LAUNCHER;
iWeekDay = (iD + 1 + 2*iM + 3*(iM + 1)/5 + iY + iY/4 - iY/oneHundred + iY/fourHundred) % WEEKEND_LAUNCHER;
for (int i = 0; i < WEEK_DAY_MAX; i++) {
if (iWeekDay == i) {
if (memcpy_s(date, size, g_weekDate[i], strlen(g_weekDate[i])) == LAUNCHER_SUCCESS) {