summaryrefslogtreecommitdiffstats
path: root/chalk/plugins
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 20:17:52 +0900
commite5dc5b5be9900b9c8b2d7988216d56156c806b20 (patch)
treed0209902442729f7856d2a8efdca565373fb5c43 /chalk/plugins
parent9d008f46e1b540304fdb7fb0270e23b7c3f43a68 (diff)
downloadkoffice-e5dc5b5be9900b9c8b2d7988216d56156c806b20.tar.gz
koffice-e5dc5b5be9900b9c8b2d7988216d56156c806b20.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'chalk/plugins')
-rw-r--r--chalk/plugins/filters/cimg/CImg.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chalk/plugins/filters/cimg/CImg.h b/chalk/plugins/filters/cimg/CImg.h
index 25c1f0d9..c4e593af 100644
--- a/chalk/plugins/filters/cimg/CImg.h
+++ b/chalk/plugins/filters/cimg/CImg.h
@@ -3047,19 +3047,19 @@ namespace cimg_library {
case 1: break;
case 2: {
for (unsigned short *ptr = (unsigned short*)buffer+size; ptr>(unsigned short*)buffer;) {
- const register unsigned short val = *(--ptr);
+ const unsigned short val = *(--ptr);
*ptr = (val>>8)|((val<<8));
}
} break;
case 4: {
for (unsigned int *ptr = (unsigned int*)buffer+size; ptr>(unsigned int*)buffer;) {
- const register unsigned int val = *(--ptr);
+ const unsigned int val = *(--ptr);
*ptr = (val>>24)|((val>>8)&0xff00)|((val<<8)&0xff0000)|(val<<24);
}
} break;
default: {
for (T* ptr = buffer+size; ptr>buffer; --ptr) {
- register unsigned char *pb=(unsigned char*)(--ptr), *pe=pb+sizeof(T);
+ unsigned char *pb=(unsigned char*)(--ptr), *pe=pb+sizeof(T);
for (int i=0; i<(int)sizeof(T)/2; i++) cimg::swap(*(pb++),*(--pe));
} break;
}