summaryrefslogtreecommitdiffstats
path: root/src/dot.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-23 18:44:37 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-23 18:44:37 (GMT)
commit5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb (patch)
treeab08dcf78d2df5bd15b3ca3887e13fa7e1fa17a2 /src/dot.cpp
parent38e9ec69c2c2738cd4ca238630cab24cde1a9200 (diff)
downloadDoxygen-5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb.zip
Doxygen-5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb.tar.gz
Doxygen-5d0281a264e33ec3477bd7f6a9dcef79a6ef8eeb.tar.bz2
Refactoring: replace QGString by std::ostringstream
Diffstat (limited to 'src/dot.cpp')
-rw-r--r--src/dot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dot.cpp b/src/dot.cpp
index 8deb0d8..6a38a6e 100644
--- a/src/dot.cpp
+++ b/src/dot.cpp
@@ -354,11 +354,11 @@ void writeDotImageMapFromFile(std::ostream &t,
}
else // bitmap graphics
{
- std::stringstream tt;
+ std::ostringstream tt(std::ios_base::ate);
t << "<img src=\"" << relPath << imgName << "\" alt=\""
<< imgName << "\" border=\"0\" usemap=\"#" << mapName << "\"/>\n";
DotFilePatcher::convertMapFile(tt, absOutFile, relPath ,TRUE, context);
- if (tt.tellg()>0)
+ if (tt.tellp()>0)
{
t << "<map name=\"" << mapName << "\" id=\"" << mapName << "\">";
t << tt.str();