File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 22
22
#ifdef WIN32
23
23
#include < limits>
24
24
#endif
25
- #include < qstring.h >
26
- #include < qtextstream.h >
25
+ #include < QString >
26
+ #include < QTextStream >
27
27
28
28
#include " qgspoint.h"
29
29
#include " qgsrect.h"
@@ -86,7 +86,7 @@ void QgsRect::setMinimal()
86
86
ymax =-std::numeric_limits<double >::max ();
87
87
}
88
88
89
- void QgsRect::scale (double scaleFactor, QgsPoint * cp)
89
+ void QgsRect::scale (double scaleFactor, const QgsPoint * cp)
90
90
{
91
91
// scale from the center
92
92
double centerX, centerY;
@@ -107,7 +107,7 @@ void QgsRect::scale(double scaleFactor, QgsPoint * cp)
107
107
ymax = centerY + newHeight / 2.0 ;
108
108
}
109
109
110
- void QgsRect::expand (double scaleFactor, QgsPoint * cp)
110
+ void QgsRect::expand (double scaleFactor, const QgsPoint * cp)
111
111
{
112
112
// scale from the center
113
113
double centerX, centerY;
Original file line number Diff line number Diff line change 21
21
22
22
#include < iosfwd>
23
23
24
- #ifndef QSTRING_H
25
- #include < qstring.h>
26
- #endif
24
+ class QString ;
27
25
28
26
#include " qgspoint.h"
29
27
@@ -79,9 +77,9 @@ class QgsRect
79
77
// ! Center point of the rectangle
80
78
QgsPoint center () const ;
81
79
// ! Scale the rectangle around its center point
82
- void scale (double , QgsPoint *c =0 );
80
+ void scale (double , const QgsPoint *c =0 );
83
81
// ! Expand the rectangle to support zoom out scaling
84
- void expand (double , QgsPoint *c = 0 );
82
+ void expand (double , const QgsPoint *c = 0 );
85
83
// ! return the intersection with the given rectangle
86
84
QgsRect intersect (QgsRect *rect);
87
85
// ! expand the rectangle so that covers both the original rectangle and the given rectangle
You can’t perform that action at this time.
0 commit comments