diff options
Diffstat (limited to 'src/dotgraph.cpp')
-rw-r--r-- | src/dotgraph.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dotgraph.cpp b/src/dotgraph.cpp index 1f5d5a0..d9dd91e 100644 --- a/src/dotgraph.cpp +++ b/src/dotgraph.cpp @@ -82,9 +82,9 @@ static bool insertMapFile(std::ostream &out,const QCString &mapFile, FileInfo fi(mapFile.str()); if (fi.exists() && fi.size()>0) // reuse existing map file { - std::stringstream t; + std::ostringstream t(std::ios_base::ate); DotFilePatcher::convertMapFile(t,mapFile,relPath,false); - if (t.tellg()>0) + if (t.tellp()>0) { out << "<map name=\"" << mapLabel << "\" id=\"" << mapLabel << "\">\n"; out << t.str(); @@ -307,7 +307,7 @@ void DotGraph::computeGraph(DotNode *root, QCString &graphStr) { //printf("computeMd5Signature\n"); - std::stringstream md5stream; + std::ostringstream md5stream(std::ios_base::ate); writeGraphHeader(md5stream,title); if (!rank.isEmpty()) { |