summaryrefslogtreecommitdiffstats
path: root/src/diagram.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2012-09-30 13:51:29 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2012-09-30 13:51:29 (GMT)
commitceb4115c7b941039411e1793e01239610ff112a2 (patch)
treed18c06222e0f84d6077b586e5633053a8bc09da8 /src/diagram.cpp
parentf6d511e52eb55c5d5b980c4d226f2ea80b396095 (diff)
downloadDoxygen-ceb4115c7b941039411e1793e01239610ff112a2.zip
Doxygen-ceb4115c7b941039411e1793e01239610ff112a2.tar.gz
Doxygen-ceb4115c7b941039411e1793e01239610ff112a2.tar.bz2
Release-1.8.2-20120930
Diffstat (limited to 'src/diagram.cpp')
-rw-r--r--src/diagram.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/diagram.cpp b/src/diagram.cpp
index b675b8d..67f63a0 100644
--- a/src/diagram.cpp
+++ b/src/diagram.cpp
@@ -606,7 +606,7 @@ void TreeDiagram::drawBoxes(FTextStream &t,Image *image,
while (dr && !done)
{
int x=0,y=0;
- float xf=0.0,yf=0.0;
+ float xf=0.0f,yf=0.0f;
DiagramItem *di=dr->first();
if (di->isInList()) // put boxes in a list
{
@@ -623,8 +623,8 @@ void TreeDiagram::drawBoxes(FTextStream &t,Image *image,
}
else
{
- if (doBase) yf += 1.0;
- else yf -= 1.0;
+ if (doBase) yf += 1.0f;
+ else yf -= 1.0f;
}
}
else
@@ -736,7 +736,7 @@ void TreeDiagram::drawConnectors(FTextStream &t,Image *image,
if (di->isInList()) // row consists of list connectors
{
int x=0,y=0,ys=0;
- float xf=0.0,yf=0.0,ysf=0.0;
+ float xf=0.0f,yf=0.0f,ysf=0.0f;
while (di)
{
DiagramItem *pi=di->parentItem();
@@ -808,12 +808,12 @@ void TreeDiagram::drawConnectors(FTextStream &t,Image *image,
if (doBase)
{
ysf = di->yPos()/(float)gridHeight+superRows-1;
- yf = ysf + 0.5;
+ yf = ysf + 0.5f;
}
else
{
- ysf = (float)superRows-0.25-di->yPos()/(float)gridHeight;
- yf = ysf - 0.25;
+ ysf = (float)superRows-0.25f-di->yPos()/(float)gridHeight;
+ yf = ysf - 0.25f;
}
}
while (di!=last) // more children to add
@@ -841,12 +841,12 @@ void TreeDiagram::drawConnectors(FTextStream &t,Image *image,
if (doBase)
{
t << "1 " << xf << " " << yf << " hedge\n";
- yf += 1.0;
+ yf += 1.0f;
}
else
{
t << "0 " << xf << " " << yf << " hedge\n";
- yf -= 1.0;
+ yf -= 1.0f;
}
}
di=dr->next();
@@ -1092,9 +1092,9 @@ void ClassDiagram::writeFigure(FTextStream &output,const char *path,
uint estWidth = cols*(20+QMAX(baseMaxLabelWidth,superMaxLabelWidth));
//printf("Estimated size %d x %d\n",estWidth,estHeight);
- const float pageWidth = 14.0; // estimated page width in cm.
- // Somewhat lower to deal with estimation
- // errors.
+ const float pageWidth = 14.0f; // estimated page width in cm.
+ // Somewhat lower to deal with estimation
+ // errors.
// compute the image height in centimeters based on the estimates
float realHeight = QMIN(rows,12); // real height in cm