From 67c8baaf33fb693693966a0d3b8da487948cd563 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A6=E5=9B=BD=E5=BA=86?= Date: Sun, 28 Apr 2024 16:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E5=91=8A=E8=AD=A6=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 韦国庆 --- common/src/utils/dcamera_utils_tools.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/utils/dcamera_utils_tools.cpp b/common/src/utils/dcamera_utils_tools.cpp index 6018beb4..2333dd3d 100644 --- a/common/src/utils/dcamera_utils_tools.cpp +++ b/common/src/utils/dcamera_utils_tools.cpp @@ -196,7 +196,7 @@ bool IsBase64(unsigned char c) return (isalnum(c) || (c == '+') || (c == '/')); } -void DumpBufferToFile(std::string fileName, uint8_t *buffer, size_t bufSize) +void DumpBufferToFile(const std::string fileName, uint8_t *buffer, size_t bufSize) { if (fileName.empty() || buffer == nullptr) { DHLOGE("dumpsaving : input param err."); @@ -217,7 +217,7 @@ void DumpBufferToFile(std::string fileName, uint8_t *buffer, size_t bufSize) return; } -int32_t IsUnderDumpMaxSize(std::string fileName) +int32_t IsUnderDumpMaxSize(const std::string fileName) { if (fileName.empty()) { DHLOGE("dumpsaving : input fileName empty."); -- Gitee