[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_3_BRANCH: kdesdk/kcachegrind/kcachegrind
From: Ben Burton <bab () debian ! org>
Date: 2005-03-31 11:53:03
Message-ID: 20050331115303.658953C9 () office ! kde ! org
[Download RAW message or body]
CVS commit by benb:
Backport #101556 fix (use long for node IDs in graphs).
M +11 -11 callgraphview.cpp 1.16.2.1
--- kdesdk/kcachegrind/kcachegrind/callgraphview.cpp #1.16:1.16.2.1
@@ -577,5 +577,5 @@ void GraphExporter::writeDot()
}
if (f)
- *stream << QString(" center=F%1;\n").arg((int)f, 0, 16);
+ *stream << QString(" center=F%1;\n").arg((long)f, 0, 16);
*stream << QString(" overlap=false;\n splines=true;\n");
}
@@ -592,5 +592,5 @@ void GraphExporter::writeDot()
abr = abr.left(Configuration::maxSymbolLength()) + "...";
- *stream << QString(" F%1 [").arg((int)n.function(), 0, 16);
+ *stream << QString(" F%1 [").arg((long)n.function(), 0, 16);
if (_useBox) {
// make label 3 lines for CallGraphView
@@ -631,7 +631,7 @@ void GraphExporter::writeDot()
*stream << QString(" F%1 -> F%2 [weight=%3")
- .arg((int)e.from(), 0, 16)
- .arg((int)e.to(), 0, 16)
- .arg((int)log(log(e.cost)));
+ .arg((long)e.from(), 0, 16)
+ .arg((long)e.to(), 0, 16)
+ .arg((long)log(log(e.cost)));
if (_go->detailLevel() ==1)
@@ -670,8 +670,8 @@ void GraphExporter::writeDot()
*stream << QString(" R%1 [shape=point,label=\"\"];\n")
- .arg((int)n.function(), 0, 16);
+ .arg((long)n.function(), 0, 16);
*stream << QString(" R%1 -> F%2 [label=\"%3\\n%4 x\",weight=%5];\n")
- .arg((int)n.function(), 0, 16)
- .arg((int)n.function(), 0, 16)
+ .arg((long)n.function(), 0, 16)
+ .arg((long)n.function(), 0, 16)
.arg(SubCost(costSum).pretty())
.arg(SubCost(countSum).pretty())
@@ -693,8 +693,8 @@ void GraphExporter::writeDot()
*stream << QString(" S%1 [shape=point,label=\"\"];\n")
- .arg((int)n.function(), 0, 16);
+ .arg((long)n.function(), 0, 16);
*stream << QString(" F%1 -> S%2 [label=\"%3\\n%4 x\",weight=%5];\n")
- .arg((int)n.function(), 0, 16)
- .arg((int)n.function(), 0, 16)
+ .arg((long)n.function(), 0, 16)
+ .arg((long)n.function(), 0, 16)
.arg(SubCost(costSum).pretty())
.arg(SubCost(countSum).pretty())
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic