summaryrefslogtreecommitdiff
path: root/src/nsimage.m
diff options
context:
space:
mode:
authorJan D <jan.h.d@swipnet.se>2014-12-24 12:26:25 +0100
committerJan D <jan.h.d@swipnet.se>2014-12-24 12:26:25 +0100
commit0d48826fd3c0836a110cd94ef7f7184272857eed (patch)
tree1ef229477dfcee9dfc66b3b57a709918db8d13a3 /src/nsimage.m
parent5fc82109bab6f51d8be7134f1368f14c628794e9 (diff)
downloademacs-0d48826fd3c0836a110cd94ef7f7184272857eed.tar.gz
Avoid compiler warning.
* nsimage.m (setPixmapData): Rename local variable bmRep to avoid compiler warning.
Diffstat (limited to 'src/nsimage.m')
-rw-r--r--src/nsimage.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nsimage.m b/src/nsimage.m
index a625f20616d..cb3d82af281 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -351,15 +351,15 @@ ns_set_alpha (void *img, int x, int y, unsigned char a)
{
if ([rep respondsToSelector: @selector (getBitmapDataPlanes:)])
{
- NSBitmapImageRep *bmRep = (NSBitmapImageRep *) rep;
+ NSBitmapImageRep *bmr = (NSBitmapImageRep *) rep;
- if ([bmRep numberOfPlanes] >= 3)
- [bmRep getBitmapDataPlanes: pixmapData];
+ if ([bmr numberOfPlanes] >= 3)
+ [bmr getBitmapDataPlanes: pixmapData];
/* The next two lines cause the DPI of the image to be ignored.
This seems to be the behavior users expect. */
[self setScalesWhenResized: YES];
- [self setSize: NSMakeSize([bmRep pixelsWide], [bmRep pixelsHigh])];
+ [self setSize: NSMakeSize([bmr pixelsWide], [bmr pixelsHigh])];
break;
}