[aseprite] 177/196: Change OSXAppDelegate base type to avoid an opaque id type

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:50:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 63c723d32793b62f42dee5b20466194bbab56ef8
Author: David Capello <davidcapello at gmail.com>
Date:   Mon Apr 11 17:28:19 2016 -0300

    Change OSXAppDelegate base type to avoid an opaque id type
---
 src/she/osx/app.mm         | 3 +--
 src/she/osx/app_delegate.h | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/she/osx/app.mm b/src/she/osx/app.mm
index 0761c12..37c9cdb 100644
--- a/src/she/osx/app.mm
+++ b/src/she/osx/app.mm
@@ -1,5 +1,4 @@
 // SHE library
-// Copyright (C) 2012-2015  David Capello
 // Copyright (C) 2012-2016  David Capello
 //
 // This file is released under the terms of the MIT license.
@@ -36,7 +35,7 @@ public:
 
 private:
   NSApplication* m_app;
-  id m_appDelegate;
+  OSXAppDelegate* m_appDelegate;
 };
 
 OSXApp::OSXApp()
diff --git a/src/she/osx/app_delegate.h b/src/she/osx/app_delegate.h
index fc24cb9..fa10667 100644
--- a/src/she/osx/app_delegate.h
+++ b/src/she/osx/app_delegate.h
@@ -10,7 +10,7 @@
 
 #include <Cocoa/Cocoa.h>
 
- at interface OSXAppDelegate : NSObject
+ at interface OSXAppDelegate : NSObject<NSApplicationDelegate>
 - (NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication*)sender;
 - (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)app;
 - (void)applicationWillTerminate:(NSNotification*)notification;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git



More information about the Pkg-games-commits mailing list