Fix non existent std::string::clear on VS6

This commit is contained in:
Eric NOULARD 2012-02-06 17:20:54 +01:00 committed by David Cole
parent 02ccb3291b
commit 9002f73f31
1 changed files with 2 additions and 2 deletions

View File

@ -786,7 +786,7 @@ int cmDocumentation::getDocumentedModulesListInDir(
// No else if no section is found (undocumented module) // No else if no section is found (undocumented module)
} }
// No else cannot read first line (ignore this kind of error) // No else cannot read first line (ignore this kind of error)
line.clear(); line = "";
} }
} }
if (nbDocumentedModules>0) if (nbDocumentedModules>0)
@ -887,7 +887,7 @@ int cmDocumentation::GetStructuredDocFromFile(
docCtxIdx++; docCtxIdx++;
docContextStack[docCtxIdx]=SDOC_SECTION; docContextStack[docCtxIdx]=SDOC_SECTION;
/* drop the rest of the line */ /* drop the rest of the line */
line.clear(); line = "";
newCtx = true; newCtx = true;
} }
else if (mkword.substr(0,3)=="end") else if (mkword.substr(0,3)=="end")