From 9002f73f311893be20d8d986de8e5239ed2afce2 Mon Sep 17 00:00:00 2001 From: Eric NOULARD Date: Mon, 6 Feb 2012 17:20:54 +0100 Subject: Fix non existent std::string::clear on VS6 --- Source/cmDocumentation.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx index dde4953..02f69f1 100644 --- a/Source/cmDocumentation.cxx +++ b/Source/cmDocumentation.cxx @@ -786,7 +786,7 @@ int cmDocumentation::getDocumentedModulesListInDir( // No else if no section is found (undocumented module) } // No else cannot read first line (ignore this kind of error) - line.clear(); + line = ""; } } if (nbDocumentedModules>0) @@ -887,7 +887,7 @@ int cmDocumentation::GetStructuredDocFromFile( docCtxIdx++; docContextStack[docCtxIdx]=SDOC_SECTION; /* drop the rest of the line */ - line.clear(); + line = ""; newCtx = true; } else if (mkword.substr(0,3)=="end") -- cgit v0.12