diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:42 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-01-30 20:17:42 +0900 |
commit | da6bd0768e4304e6c2853d012c7d0686a205addb (patch) | |
tree | 28183b703384e45f7330e6db3212dce058f70785 /languages/cpp/app_templates/noatunvisual/plugin_impl.cpp | |
parent | ae5e2adcf39a6c7abbcd874e40e05bbbff428e2c (diff) | |
download | tdevelop-da6bd0768e4304e6c2853d012c7d0686a205addb.tar.gz tdevelop-da6bd0768e4304e6c2853d012c7d0686a205addb.zip |
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'languages/cpp/app_templates/noatunvisual/plugin_impl.cpp')
-rw-r--r-- | languages/cpp/app_templates/noatunvisual/plugin_impl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/languages/cpp/app_templates/noatunvisual/plugin_impl.cpp b/languages/cpp/app_templates/noatunvisual/plugin_impl.cpp index a25f1fd2..839206ad 100644 --- a/languages/cpp/app_templates/noatunvisual/plugin_impl.cpp +++ b/languages/cpp/app_templates/noatunvisual/plugin_impl.cpp @@ -23,7 +23,7 @@ inline void Bitmap<Type>::addPixel(int x, int y, int br1, int br2) { if (x < 0 || x >= width || y < 0 || y >= height) return; - register unsigned char *p = output+x*2+y*width*2; + unsigned char *p = output+x*2+y*width*2; if (p[0] < 255-br1) p[0] += br1; else p[0] = 255; if (p[1] < 255-br2) p[1] += br2; else p[1] = 255; } @@ -50,7 +50,7 @@ void Bitmap<Type>::addVertLine(int x, int y1, int y2, int br1, int br2) template <class Type> void Bitmap<Type>::fadeStar() { - register unsigned long *ptr = (unsigned long*)output; + unsigned long *ptr = (unsigned long*)output; int i = width*height*2/4; do { @@ -225,7 +225,7 @@ void %{APPNAME}View::repaint() SDL_LockSurface(surface); TEST(); - register unsigned long *ptr2 = (unsigned long*)output2; + unsigned long *ptr2 = (unsigned long*)output2; unsigned long *ptr1 = (unsigned long*)( surface->pixels ); int i = width*height/4; TEST(); @@ -233,12 +233,12 @@ void %{APPNAME}View::repaint() do { // Asger Alstrup Nielsen's (alstrup@diku.dk) // optimized 32 bit screen loop - register unsigned int const r1 = *(ptr2++); - register unsigned int const r2 = *(ptr2++); + unsigned int const r1 = *(ptr2++); + unsigned int const r2 = *(ptr2++); //if (r1 || r2) { #ifdef LITTLEENDIAN - register unsigned int const v = + unsigned int const v = ((r1 & 0x000000f0ul) >> 4) | ((r1 & 0x0000f000ul) >> 8) | ((r1 & 0x00f00000ul) >> 12) @@ -249,7 +249,7 @@ void %{APPNAME}View::repaint() | ((r2 & 0x00f00000ul) << 4) | ((r2 & 0xf0000000ul))); #else - register unsigned int const v = + unsigned int const v = ((r2 & 0x000000f0ul) >> 4) | ((r2 & 0x0000f000ul) >> 8) | ((r2 & 0x00f00000ul) >> 12) |