summaryrefslogtreecommitdiffstats
path: root/src/diagram.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-09-30 13:51:29 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2012-09-30 13:51:29 (GMT)
commit9c9313827b29876de43ad5305fd7ac162013359c (patch)
treed18c06222e0f84d6077b586e5633053a8bc09da8 /src/diagram.cpp
parent489cefdf7a2ce294a15cb12b866dce13f5664f12 (diff)
downloadDoxygen-9c9313827b29876de43ad5305fd7ac162013359c.zip
Doxygen-9c9313827b29876de43ad5305fd7ac162013359c.tar.gz
Doxygen-9c9313827b29876de43ad5305fd7ac162013359c.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