mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 13:10:59 +00:00
Resolve clang warnings about wrong format specifiers for NSLog.
Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de> git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36133 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d7fbd2f6af
commit
0a4708d4d0
4 changed files with 14 additions and 6 deletions
|
@ -1,3 +1,11 @@
|
|||
2013-02-14 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSDragView.m
|
||||
* Source/GSSlideView.m
|
||||
* Source/NSApplication.m
|
||||
Resolve clang warnings about wrong format specifiers for NSLog.
|
||||
Patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
||||
|
||||
2013-02-13 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/GSXibLoader.m: Resolve memory leak for GSXibElement.
|
||||
|
|
|
@ -878,7 +878,7 @@ static GSDragView *sharedDragView = nil;
|
|||
}
|
||||
break;
|
||||
default:
|
||||
NSLog(@"Internal: dropped event (%d) during dragging", [theEvent type]);
|
||||
NSLog(@"Internal: dropped event (%d) during dragging", (int)[theEvent type]);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1074,7 +1074,7 @@ static GSDragView *sharedDragView = nil;
|
|||
{
|
||||
NSDebugLLog (@"NSDragging",
|
||||
@"Unexpected event type: %d during slide",
|
||||
[theEvent type]);
|
||||
(int)[theEvent type]);
|
||||
}
|
||||
newPosition.x = (screenPoint.x + ((float) steps - 1.0)
|
||||
* dragPosition.x) / ((float) steps);
|
||||
|
|
|
@ -105,7 +105,7 @@
|
|||
{
|
||||
NSDebugLLog (@"NSDragging",
|
||||
@"Unexpected event type: %d during slide",
|
||||
[theEvent type]);
|
||||
(int)[theEvent type]);
|
||||
}
|
||||
}
|
||||
[NSEvent stopPeriodicEvents];
|
||||
|
|
|
@ -2091,16 +2091,16 @@ See -runModalForWindow:
|
|||
|
||||
default: /* pass all other events to the event's window */
|
||||
{
|
||||
NSWindow *window = [theEvent window];
|
||||
NSWindow *window = [theEvent window];
|
||||
|
||||
if (!theEvent)
|
||||
NSDebugLLog(@"NSEvent", @"NSEvent is nil!\n");
|
||||
if (type == NSMouseMoved)
|
||||
NSDebugLLog(@"NSMotionEvent", @"Send move (%d) to %@",
|
||||
type, window);
|
||||
(int)type, window);
|
||||
else
|
||||
NSDebugLLog(@"NSEvent", @"Send NSEvent type: %d to %@",
|
||||
type, window);
|
||||
(int)type, window);
|
||||
if (window)
|
||||
[window sendEvent: theEvent];
|
||||
else if (type == NSRightMouseDown)
|
||||
|
|
Loading…
Reference in a new issue