diff options
Diffstat (limited to 'src/dotlegendgraph.cpp')
-rw-r--r-- | src/dotlegendgraph.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dotlegendgraph.cpp b/src/dotlegendgraph.cpp index b17a293..c1f800b 100644 --- a/src/dotlegendgraph.cpp +++ b/src/dotlegendgraph.cpp @@ -13,6 +13,8 @@ * */ +#include <sstream> + #include "dotlegendgraph.h" #include "util.h" #include "config.h" @@ -23,7 +25,7 @@ void DotLegendGraph::writeGraph(const char *path) { - FTextStream ts; + std::stringstream ts; DotGraph::writeGraph(ts, GOF_BITMAP, EOF_Html, path, "", "", FALSE, 0); if (getDotImageExtension()=="svg") @@ -43,7 +45,7 @@ void DotLegendGraph::computeTheGraph() { int fontSize = Config_getInt(DOT_FONTSIZE); QCString fontName = Config_getString(DOT_FONTNAME); - FTextStream md5stream(&m_theGraph); + std::stringstream md5stream; writeGraphHeader(md5stream,theTranslator->trLegendTitle()); md5stream << " Node9 [shape=\"box\",label=\"Inherited\",fontsize=\"" << fontSize << "\",height=0.2,width=0.4,fontname=\"" << fontName << "\",fillcolor=\"grey75\",style=\"filled\" fontcolor=\"black\"];\n"; md5stream << " Node10 -> Node9 [dir=\"back\",color=\"midnightblue\",fontsize=\"" << fontSize << "\",style=\"solid\",fontname=\"" << fontName << "\"];\n"; @@ -63,6 +65,7 @@ void DotLegendGraph::computeTheGraph() md5stream << " Node18 -> Node9 [dir=\"back\",color=\"darkorchid3\",fontsize=\"" << fontSize << "\",style=\"dashed\",label=\"m_usedClass\",fontname=\"" << fontName << "\"];\n"; md5stream << " Node18 [shape=\"box\",label=\"Used\",fontsize=\"" << fontSize << "\",height=0.2,width=0.4,fontname=\"" << fontName << "\",color=\"black\"];\n"; writeGraphFooter(md5stream); + m_theGraph = md5stream.str(); } QCString DotLegendGraph::getMapLabel() const |