[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-24 0d48826: Avoid compiler warning.
From: |
Jan D. |
Subject: |
[Emacs-diffs] emacs-24 0d48826: Avoid compiler warning. |
Date: |
Wed, 24 Dec 2014 11:26:33 +0000 |
branch: emacs-24
commit 0d48826fd3c0836a110cd94ef7f7184272857eed
Author: Jan D <address@hidden>
Commit: Jan D <address@hidden>
Avoid compiler warning.
* nsimage.m (setPixmapData): Rename local variable bmRep to avoid
compiler warning.
---
src/ChangeLog | 2 ++
src/nsimage.m | 8 ++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/ChangeLog b/src/ChangeLog
index 530b913..2840109 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -4,6 +4,8 @@
(dealloc): Release bmRep.
(setPixmapData): Make bmRep local so class member is not
set (Bug#19133).
+ (setPixmapData): Rename local variable bmRep to avoid compiler
+ warning.
2014-12-24 Jan Djärv <address@hidden>
diff --git a/src/nsimage.m b/src/nsimage.m
index a625f20..cb3d82a 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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-24 0d48826: Avoid compiler warning.,
Jan D. <=