From 642a3b4788a6b53d20b4910c681e38becd41500c Mon Sep 17 00:00:00 2001 From: luoliangyi <87842688@qq.com> Date: Sat, 26 Nov 2022 10:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/imgfmt/HGOfdImpl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/imgfmt/HGOfdImpl.cpp b/modules/imgfmt/HGOfdImpl.cpp index 1a6ed3bf..d29d0b0d 100644 --- a/modules/imgfmt/HGOfdImpl.cpp +++ b/modules/imgfmt/HGOfdImpl.cpp @@ -287,7 +287,7 @@ HGResult HGOfdReaderImpl::GetPageInfo(HGUInt page, HGOfdPageInfo* info) sprintf(img_name, "Doc_0/Res/%s", imgName.c_str()); HGJpegLoadInfo jpegInfo; - HGResult ret = ReadJpeg(img_name, &jpegInfo, 0, 0, 0, 0, NULL); + ret = ReadJpeg(img_name, &jpegInfo, 0, 0, 0, 0, NULL); if (HGBASE_ERR_OK != ret) { return ret; @@ -449,7 +449,7 @@ HGResult HGOfdReaderImpl::LoadImage(HGUInt page, HGFloat xScale, HGFloat yScale, char img_name[128]; sprintf(img_name, "Doc_0/Res/%s", imgName.c_str()); - HGResult ret = ReadJpeg(img_name, NULL, xScale, yScale, imgType, imgOrigin, image); + ret = ReadJpeg(img_name, NULL, xScale, yScale, imgType, imgOrigin, image); if (HGBASE_ERR_OK != ret) { return ret; @@ -850,8 +850,8 @@ HGResult HGOfdImageWriterImpl::AddJpegImageFile(HGImage image, const HGJpegSaveI return HGIMGFMT_ERR_FAIL; } - zip_int64_t ret = zip_file_add(m_zip, name, s, ZIP_FL_OVERWRITE); - if (ret < 0) + zip_int64_t rc = zip_file_add(m_zip, name, s, ZIP_FL_OVERWRITE); + if (rc < 0) { zip_source_free(s); HGBase_DeleteFile(tmpName);