summaryrefslogtreecommitdiffstats
path: root/kpresenter/KoPointArray.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 20:17:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-01-30 23:52:57 +0900
commit6f5e73f8e45830a61c66a08525fb86f0d8371e18 (patch)
tree5d9a1d7b1e2829597fe3ea8bf1915f5f4d49e571 /kpresenter/KoPointArray.cpp
parentb027c0d2d9a6bf45e80ece20725216222f4ac7d2 (diff)
downloadkoffice-6f5e73f8e45830a61c66a08525fb86f0d8371e18.tar.gz
koffice-6f5e73f8e45830a61c66a08525fb86f0d8371e18.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit e5dc5b5be9900b9c8b2d7988216d56156c806b20)
Diffstat (limited to 'kpresenter/KoPointArray.cpp')
-rw-r--r--kpresenter/KoPointArray.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kpresenter/KoPointArray.cpp b/kpresenter/KoPointArray.cpp
index 77cb6e15f..8e5129015 100644
--- a/kpresenter/KoPointArray.cpp
+++ b/kpresenter/KoPointArray.cpp
@@ -25,8 +25,8 @@
void KoPointArray::translate( double dx, double dy )
{
- register KoPoint *p = data();
- register int i = size();
+ KoPoint *p = data();
+ int i = size();
KoPoint pt( dx, dy );
while ( i-- ) {
*p += pt;
@@ -232,7 +232,7 @@ KoRect KoPointArray::boundingRect() const
{
if ( isEmpty() )
return KoRect( 0, 0, 0, 0 ); // null rectangle
- register KoPoint *pd = data();
+ KoPoint *pd = data();
double minx, maxx, miny, maxy;
minx = maxx = pd->x();
miny = maxy = pd->y();