mirror of
https://github.com/SFML/SFML.git
synced 2025-03-14 01:40:05 +08:00
Fixed unused parameter warnings
This commit is contained in:
parent
49f2a76d93
commit
0d6ddde07f
@ -239,6 +239,7 @@
|
|||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
-(void)bringAllToFront:(id)sender
|
-(void)bringAllToFront:(id)sender
|
||||||
{
|
{
|
||||||
|
(void)sender;
|
||||||
[[NSApp windows] makeObjectsPerformSelector:@selector(orderFrontRegardless)];
|
[[NSApp windows] makeObjectsPerformSelector:@selector(orderFrontRegardless)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,8 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
-(NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)sender
|
-(NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)sender
|
||||||
{
|
{
|
||||||
// TODO generate close event for each SFML window
|
(void)sender;
|
||||||
|
// Generate close event for each SFML window
|
||||||
[NSApp makeWindowsPerform:@selector(sfClose) inOrder:NO];
|
[NSApp makeWindowsPerform:@selector(sfClose) inOrder:NO];
|
||||||
return NSTerminateCancel;
|
return NSTerminateCancel;
|
||||||
}
|
}
|
||||||
@ -44,6 +45,7 @@
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
-(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)theApplication
|
-(BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)theApplication
|
||||||
{
|
{
|
||||||
|
(void)theApplication;
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,7 @@
|
|||||||
-(void)doCommandBySelector:(SEL)sel
|
-(void)doCommandBySelector:(SEL)sel
|
||||||
{
|
{
|
||||||
// Just do nothing, to prevent sound alerts
|
// Just do nothing, to prevent sound alerts
|
||||||
|
(void)sel;
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
@ -130,6 +130,8 @@
|
|||||||
////////////////////////////////////////////////////////.
|
////////////////////////////////////////////////////////.
|
||||||
-(void)setWindowPositionToX:(int)x Y:(int)y
|
-(void)setWindowPositionToX:(int)x Y:(int)y
|
||||||
{
|
{
|
||||||
|
(void)x;
|
||||||
|
(void)y;
|
||||||
sf::err() << "Cannot move SFML area when SFML is integrated in a NSView. Use the view handler directly instead." << std::endl;
|
sf::err() << "Cannot move SFML area when SFML is integrated in a NSView. Use the view handler directly instead." << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,6 +159,7 @@
|
|||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
-(void)changeTitle:(NSString*)title
|
-(void)changeTitle:(NSString*)title
|
||||||
{
|
{
|
||||||
|
(void)title;
|
||||||
sf::err() << "Cannot change the title of the SFML area when SFML is integrated in a NSView." << std::endl;
|
sf::err() << "Cannot change the title of the SFML area when SFML is integrated in a NSView." << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,6 +204,9 @@
|
|||||||
by:(unsigned int)height
|
by:(unsigned int)height
|
||||||
with:(const sf::Uint8*)pixels
|
with:(const sf::Uint8*)pixels
|
||||||
{
|
{
|
||||||
|
(void)width;
|
||||||
|
(void)height;
|
||||||
|
(void)pixels;
|
||||||
sf::err() << "Cannot set an icon when SFML is integrated in a NSView." << std::endl;
|
sf::err() << "Cannot set an icon when SFML is integrated in a NSView." << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,6 +55,7 @@
|
|||||||
// Consider overriding NSResponder -keyDown: message in a Cocoa view/window
|
// Consider overriding NSResponder -keyDown: message in a Cocoa view/window
|
||||||
// that contains a SFML rendering area. Doing so will prevent a system
|
// that contains a SFML rendering area. Doing so will prevent a system
|
||||||
// alert to be thrown every time the user presses a key.
|
// alert to be thrown every time the user presses a key.
|
||||||
|
(void)theEvent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -505,6 +505,8 @@
|
|||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
-(BOOL)windowShouldClose:(id)sender
|
-(BOOL)windowShouldClose:(id)sender
|
||||||
{
|
{
|
||||||
|
(void)sender;
|
||||||
|
|
||||||
if (m_requester == 0)
|
if (m_requester == 0)
|
||||||
return YES;
|
return YES;
|
||||||
|
|
||||||
@ -516,6 +518,8 @@
|
|||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
-(void)windowDidBecomeKey:(NSNotification*)notification
|
-(void)windowDidBecomeKey:(NSNotification*)notification
|
||||||
{
|
{
|
||||||
|
(void)notification;
|
||||||
|
|
||||||
// Send event.
|
// Send event.
|
||||||
if (m_requester == 0)
|
if (m_requester == 0)
|
||||||
return;
|
return;
|
||||||
@ -530,6 +534,8 @@
|
|||||||
////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////
|
||||||
-(void)windowDidResignKey:(NSNotification*)notification
|
-(void)windowDidResignKey:(NSNotification*)notification
|
||||||
{
|
{
|
||||||
|
(void)notification;
|
||||||
|
|
||||||
// Send event.
|
// Send event.
|
||||||
if (m_requester == 0)
|
if (m_requester == 0)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user