mirror of
https://github.com/openharmony/applications_sample_camera.git
synced 2026-07-21 00:25:59 -04:00
修改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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user