From 57ef93c0c479addaa00d9a0cb9ba627dc8599fc5 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:40 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro --- noatun-plugins/nexscope/renderers.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'noatun-plugins/nexscope/renderers.cpp') diff --git a/noatun-plugins/nexscope/renderers.cpp b/noatun-plugins/nexscope/renderers.cpp index a0305ab..e296471 100644 --- a/noatun-plugins/nexscope/renderers.cpp +++ b/noatun-plugins/nexscope/renderers.cpp @@ -30,7 +30,7 @@ structQt::HorizontalPair : public Renderer } static inline void processV(int h, int start, int end, Bitmap *d, - float *ch, Pixel c, register bool solid) + float *ch, Pixel c, bool solid) { int oldx=(start+end)/2; int mid=oldx; @@ -50,7 +50,7 @@ structQt::HorizontalPair : public Renderer } static inline void processH(int h, int start, int end, Bitmap *d, - float *ch, Pixel c, register bool solid) + float *ch, Pixel c, bool solid) { int oldx=(start+end)/2; int mid=oldx; @@ -143,9 +143,9 @@ class Fade : public Renderer public: virtual Bitmap *render(float *[2], Bitmap *src) { - register int i=src->bytes()/sizeof(Pixel); + int i=src->bytes()/sizeof(Pixel); - register Pixel *d=src->pixels(); + Pixel *d=src->pixels(); do { *d -= ((*d & 0xf0f0f0f0) >> 4) + @@ -208,8 +208,8 @@ struct Blur : public Renderer { Bitmap *b=nex->bitmapPool()->get(); - register Byte *buffer=(Byte*)b->pixels(); - register unsigned short pitch=width*sizeof(Pixel); + Byte *buffer=(Byte*)b->pixels(); + unsigned short pitch=width*sizeof(Pixel); // skip the first row buffer+=pitch; @@ -218,7 +218,7 @@ struct Blur : public Renderer buffer+=sizeof(Pixel); // we also don't want to do the last row - register Pixel *end=b->lastPixel(); + Pixel *end=b->lastPixel(); end-=pitch; // and the last pixel on the second-to-last row end-=sizeof(Pixel); -- cgit v1.2.1