diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:52 +0900 |
commit | e5dc5b5be9900b9c8b2d7988216d56156c806b20 (patch) | |
tree | d0209902442729f7856d2a8efdca565373fb5c43 /chalk | |
parent | 9d008f46e1b540304fdb7fb0270e23b7c3f43a68 (diff) | |
download | koffice-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')
-rw-r--r-- | chalk/chalkcolor/kis_abstract_colorspace.cc | 2 | ||||
-rw-r--r-- | chalk/colorspaces/wetsticky/ws/cmap.c | 4 | ||||
-rw-r--r-- | chalk/colorspaces/wetsticky/ws/ogl_interface.c | 4 | ||||
-rw-r--r-- | chalk/colorspaces/wetsticky/ws/x_interface.c | 4 | ||||
-rw-r--r-- | chalk/plugins/filters/cimg/CImg.h | 6 |
5 files changed, 10 insertions, 10 deletions
diff --git a/chalk/chalkcolor/kis_abstract_colorspace.cc b/chalk/chalkcolor/kis_abstract_colorspace.cc index 7bc7ec1c1..7f5155348 100644 --- a/chalk/chalkcolor/kis_abstract_colorspace.cc +++ b/chalk/chalkcolor/kis_abstract_colorspace.cc @@ -315,7 +315,7 @@ typedef struct { } BCHSWADJUSTS, *LPBCHSWADJUSTS; -static int desaturateSampler(register WORD In[], register WORD Out[], register LPVOID /*Cargo*/) +static int desaturateSampler(WORD In[], WORD Out[], LPVOID /*Cargo*/) { cmsCIELab LabIn, LabOut; cmsCIELCh LChIn, LChOut; diff --git a/chalk/colorspaces/wetsticky/ws/cmap.c b/chalk/colorspaces/wetsticky/ws/cmap.c index 9e53b0aef..2dd13a9ee 100644 --- a/chalk/colorspaces/wetsticky/ws/cmap.c +++ b/chalk/colorspaces/wetsticky/ws/cmap.c @@ -571,8 +571,8 @@ bump_map() { POINT p; CELL_PTR cell; - register int x, y; - register int colour; + int x, y; + int colour; for (x=0; x < CANVAS_WIDTH; x++) { diff --git a/chalk/colorspaces/wetsticky/ws/ogl_interface.c b/chalk/colorspaces/wetsticky/ws/ogl_interface.c index 76a552a9c..391a41942 100644 --- a/chalk/colorspaces/wetsticky/ws/ogl_interface.c +++ b/chalk/colorspaces/wetsticky/ws/ogl_interface.c @@ -218,8 +218,8 @@ bump_map() { POINT p; CELL_PTR cell; - register int x, y; - register int colour; + int x, y; + int colour; for (y=0; y < CANVAS_HEIGHT; y++) { diff --git a/chalk/colorspaces/wetsticky/ws/x_interface.c b/chalk/colorspaces/wetsticky/ws/x_interface.c index f4cb49013..b15d3ec25 100644 --- a/chalk/colorspaces/wetsticky/ws/x_interface.c +++ b/chalk/colorspaces/wetsticky/ws/x_interface.c @@ -627,8 +627,8 @@ bump_map() { POINT p; CELL_PTR cell; - register int x, y; - register int colour; + int x, y; + int colour; for (y=0; y < CANVAS_HEIGHT; y++) { diff --git a/chalk/plugins/filters/cimg/CImg.h b/chalk/plugins/filters/cimg/CImg.h index 25c1f0d9c..c4e593af8 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; } |