Commit Graph
17 Commits
Author SHA1 Message Date
Stephan Bergmann 323a2a249a Add support for macOS SDK 12.0
...and for now just silence all the new deprecation warnings

Change-Id: Ic6e04f4bade91a823872cd4e453c41ee1950bd77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124275
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-10-27 16:32:04 +02:00
Stephan Bergmann 893c8fa232 -Werror,-Wunused-but-set-variable (Clang 13 trunk)
all three variables were unused ever since the code's introduction in
229a0de9c8 "CWS-TOOLING: integrate CWS
appleremote01"

Change-Id: Ib755b86c81a6823c440f9f6a392b8f4b7de973ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116984
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2021-06-10 15:52:51 +02:00
Stephan Bergmann 0540b098b7 Blind fix of -Werror,-Wpointer-to-int-cast in apple_remote
(That warning is probably new in recent Clang 10 trunk, hence the issue only got
reported now.)

To me, this looks like a bug introduced with

> commit aaf218d025
> Author: ericb2 <ericb2@apache.org>
> AuthorDate: Sun Oct 30 22:57:34 2011 +0000
> Commit:     Thorsten Behrens <tbehrens@suse.com>
> CommitDate: Mon Dec 5 13:00:11 2011 +0100
>
>     Propragating the modif in the implementation (HIDRemoteControlDevice.m)
>
>      * found under MIT-style at svn rev 1195272 (http://svn.apache.org/viewvc?view=revision&revision=1195272)
>
> diff --git a/apple_remote/HIDRemoteControlDevice.m b/apple_remote/HIDRemoteControlDevice.m
> index 94215900717b..2cd7506e60d3 100644
> --- a/apple_remote/HIDRemoteControlDevice.m
> +++ b/apple_remote/HIDRemoteControlDevice.m
> @@ -281,7 +281,17 @@ - (void) handleEventWithCookieString: (NSString*) cookieString sumOfValues: (SIn
>
>         NSNumber* buttonId = [[self cookieToButtonMapping] objectForKey: cookieString];
>         if (buttonId != nil) {
> -               [self sendRemoteButtonEvent: [buttonId intValue] pressedDown: (sumOfValues>0)];
> +       switch ( (int)buttonId )
> +       {
> +       case kMetallicRemote2009ButtonPlay:
> +       case kMetallicRemote2009ButtonMiddlePlay:
> +           buttonId = [NSNumber numberWithInt:kRemoteButtonPlay];
> +           break;
> +       default:
> +           break;
> +       }
> +       [self sendRemoteButtonEvent: [buttonId intValue] pressedDown: (sumOfValues>0)];
> +
>         } else {
>                 // let's see if a number of events are stored in the cookie string. this does
>                 // happen when the main thread is too busy to handle all incoming events in time.

(which indeed appears to be a faithful copy of all the non-whitespace changes
made at the cited <http://svn.apache.org/viewvc?view=revision&revision=1195272>
"Propragating the modif in the implementation (HIDRemoteControlDevice.m)").

I assume that my fix here is what was originally intended, but I don't know how
to actually test this code (if it is still testable at all).

Change-Id: If8faa8e068c7d7dffb4677efdaa5896cf6fd4c0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89209
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-02-21 16:30:11 +01:00
Stephan Bergmann 6333dcf6f1 loplugin:indentation (macOS)
* Some .m/.mm files that still contained tabs instead of spaces have been
  cleaned up with Emacs' untabify (and
  apple_remote/source/HIDRemoteControlDevice.m needed further manual adaptions):

  apple_remote/source/GlobalKeyboardDevice.m
  apple_remote/source/HIDRemoteControlDevice.m
  apple_remote/source/KeyspanFrontRowControl.m
  apple_remote/source/RemoteControl.m
  vcl/osx/a11yrolehelper.mm

* Some of the changes predate 0626e66d76 "Avoid
  loplugin:indentation after preproc conditional inclusion lines" and would
  likely have no longer been flagged since.

Change-Id: Ibf5faffa743c7f79b36109d9879eb79d63c8c40f
Reviewed-on: https://gerrit.libreoffice.org/68090
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-02-21 09:14:14 +01:00
Julien Nabet b8a6998342 Following tdf#111561: no need to autorelease "elements" (apple_remote)
Change-Id: Ic074af74a9f48618ac1c4b3752b15661f2003815
Reviewed-on: https://gerrit.libreoffice.org/43333
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-12 07:41:44 +02:00
Julien Nabet 47039a11da tdf#111561: try to fix leak in HIDRemoteControlDevice (apple_remote)
Change-Id: I6539f1cc9612eb3380381a54d3d1d674fd66cc03
Reviewed-on: https://gerrit.libreoffice.org/43329
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-11 20:09:34 +02:00
Julien Nabet 59fd62fc2f Typo notifcation->notification
Change-Id: I411105f1a3d519dd08bee55c722e4a06a14f238d
Reviewed-on: https://gerrit.libreoffice.org/41368
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-08-21 07:38:46 +02:00
Stephan Bergmann e9febbc320 loplugin:oncevar
Change-Id: I9d6902d86c9b72ad28a025374077ef90a350e598
2017-08-07 08:07:42 +02:00
Stephan Bergmann 551433e7cf loplugin:nullptr (automatic rewrite; Mac-specific code)
Change-Id: Ie5a52b097ff2992de5cc82ba0d303618b44e3213
2015-11-10 16:20:33 +01:00
Alexander Wilms b2afdb85c3 Remove visual noise from apple_remote
Change-Id: I12bec42cb699d8cbcfab2eb4d2f8ad8f5ed83b78
Reviewed-on: https://gerrit.libreoffice.org/8229
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-25 16:26:29 +00:00
Herbert Dürr 9d5841aa43 Resolved: #i124201# mark debug-infos from the apple_remote...
module appropriately

to make the source of some log messages more clear

(cherry picked from commit fe4ae4735c5a5e2b2210e684e97228cd91174e4c)

Conflicts:
	apple_remote/AppleRemote.m
	apple_remote/source/HIDRemoteControlDevice.m
	apple_remote/source/RemoteControl.m
	apple_remote/source/RemoteControlContainer.m

Change-Id: Ie57114f4d2d67f258808d03e01dff8bc05ba9f2c
2014-02-10 16:36:50 +00:00
Tor Lillqvist b98e598cc4 WaE: cast from pointer to integer of different size
Change-Id: I28195a347dd63b7e44268a396aa70150c917e55f
2012-07-28 09:50:10 +03:00
Tor Lillqvist aef42e168d WaE: format specifies type 'int' but the argument has type 'void *'
Change-Id: I0b8fad6adcef16fb93e4cc0d1beec8e5ae2a3c79
2012-07-28 09:07:28 +03:00
Tor Lillqvist 8701f5ef05 Add Emacs and vim mode lines
Change-Id: I8ccb7be448faf42904eb6246a4f5a06ff8028ffc
2012-05-08 00:22:16 +03:00
Norbert Thiebaud fbbcc07ff4 gbuildify apple_remote 2012-02-05 19:34:07 -06:00
Norbert Thiebaud bec18a80f5 Revert "gbuildify apple_remote" need to have soenv2 merged before
This reverts commit 3d75a28274.
This will be pused again _after_ feature/soenv2 is merged
2012-01-28 18:29:49 -06:00
Norbert Thiebaud 3d75a28274 gbuildify apple_remote 2012-01-28 18:10:31 -06:00