因编译器不同导致迭代器无法使用

This commit is contained in:
luoliangyi 2022-07-05 10:36:01 +08:00
parent 6c457d48a8
commit 7afeeb5f5d
1 changed files with 11 additions and 11 deletions

View File

@ -187,7 +187,7 @@ namespace ver_2
{
assert(NULL != param && this == param->mgr);
std::list<std::string>::const_iterator iter;
std::list<std::string>::iterator iter;
for (iter = m_saveFilePathList.begin(); iter != m_saveFilePathList.end(); ++iter)
{
if (*iter == param->fileName)
@ -382,7 +382,7 @@ namespace ver_2
int ret = -1;
errInfo = "错误";
std::list<std::string>::const_iterator iter;
std::list<std::string>::iterator iter;
for (iter = m_saveFilePathList.begin(); iter != m_saveFilePathList.end(); ++iter)
{
if (filePath == *iter)