Skip to content

Commit 631b9ef

Browse files
yangyp-yeshuangwei1024
authored andcommitted
use string::append change name
1 parent 61e816e commit 631b9ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/assets-manager/AssetsManagerEx.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
NS_CC_EXT_BEGIN
4040

41-
#define TEMP_PACKAGE_SUFFIX "_temp"
41+
#define TEMP_FOLDERNAME "_temp"
4242
#define VERSION_FILENAME "version.manifest"
4343
#define TEMP_MANIFEST_FILENAME "project.manifest.temp"
4444
#define MANIFEST_FILENAME "project.manifest"
@@ -314,7 +314,7 @@ void AssetsManagerEx::setStoragePath(const std::string& storagePath)
314314
_fileUtils->createDirectory(_storagePath);
315315

316316
_tempStoragePath = _storagePath;
317-
_tempStoragePath.insert(_storagePath.size(), TEMP_PACKAGE_SUFFIX);
317+
_tempStoragePath.append(TEMP_FOLDERNAME);
318318
adjustPath(_tempStoragePath);
319319
_fileUtils->createDirectory(_tempStoragePath);
320320
}

0 commit comments

Comments
 (0)