From 8457990bb16306bf3549086efa9254d6b8c8d29d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 14 Jun 2016 16:40:15 +0100 Subject: [PATCH] Removed deprecated register keyword usage --- examples/osgviewerCocoa/ViewerCocoa.mm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/osgviewerCocoa/ViewerCocoa.mm b/examples/osgviewerCocoa/ViewerCocoa.mm index 5068d2b46..346fcb829 100644 --- a/examples/osgviewerCocoa/ViewerCocoa.mm +++ b/examples/osgviewerCocoa/ViewerCocoa.mm @@ -136,22 +136,22 @@ static NSOpenGLContext* s_sharedOpenGLContext = NULL; // Taken/Adapted from one of the Apple OpenGL developer examples static void Internal_SetAlpha(NSBitmapImageRep *imageRep, unsigned char alpha_value) { - register unsigned char * sp = [imageRep bitmapData]; - register int bytesPerRow = [imageRep bytesPerRow]; - register int height = [imageRep pixelsHigh]; - register int width = [imageRep pixelsWide]; + unsigned char * sp = [imageRep bitmapData]; + int bytesPerRow = [imageRep bytesPerRow]; + int height = [imageRep pixelsHigh]; + int width = [imageRep pixelsWide]; for(int i=0; i 0) { unsigned char* sp_char = (unsigned char *) the_pixel; -// register unsigned char * the_red = sp_char; -// register unsigned char * the_green = (sp_char+1); -// register unsigned char * the_blue = (sp_char+2); - register unsigned char * the_alpha = (sp_char+3); +// unsigned char * the_red = sp_char; +// unsigned char * the_green = (sp_char+1); +// unsigned char * the_blue = (sp_char+2); + unsigned char * the_alpha = (sp_char+3); *the_alpha = alpha_value; *the_pixel++;