Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Pavel Sanda
Stephan Witt wrote: -bool Messages::available() const +bool Messages::available(string const c) { + (void)c; return false; } Why this (void)c; construct? Pavel

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Richard Heck
On 09/24/2012 01:07 PM, Pavel Sanda wrote: Stephan Witt wrote: -bool Messages::available() const +bool Messages::available(string const c) { + (void)c; return false; } Why this (void)c; construct? Crushes an unused variable warning. rh

Re: Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Kornel Benko
Am Montag, 24. September 2012 um 14:10:33, schrieb Richard Heck rgh...@lyx.org On 09/24/2012 01:07 PM, Pavel Sanda wrote: Stephan Witt wrote: -bool Messages::available() const +bool Messages::available(string const c) { + (void)c; return false; } Why this (void)c;

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Richard Heck
On 09/24/2012 02:44 PM, Kornel Benko wrote: Am Montag, 24. September 2012 um 14:10:33, schrieb Richard Heck rgh...@lyx.org On 09/24/2012 01:07 PM, Pavel Sanda wrote: Stephan Witt wrote: -bool Messages::available() const +bool Messages::available(string const c) { + (void)c;

Re: Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Pavel Sanda
Kornel Benko wrote: Why not bool Messages::available(string const ) { ... } exactly ;) p

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Stephan Witt
Am 24.09.2012 um 21:49 schrieb Pavel Sanda sa...@lyx.org: Kornel Benko wrote: Why not bool Messages::available(string const ) { ... } exactly ;) p I've copied this construct from src/support/Package.cpp Stephan

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Pavel Sanda
Stephan Witt wrote: I've copied this construct from src/support/Package.cpp I see, but there it is forced by the ifdef structure. I also wonder why the (void) btw... Pavel

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Stephan Witt
Am 24.09.2012 um 23:34 schrieb Pavel Sanda sa...@lyx.org: Stephan Witt wrote: I've copied this construct from src/support/Package.cpp I see, but there it is forced by the ifdef structure. I also wonder why the (void) btw... Pavel To avoid other warnings. The best pattern IMHO is: bool

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Pavel Sanda
Stephan Witt wrote: > -bool Messages::available() const > +bool Messages::available(string const & c) > { > + (void)c; > return false; > } Why this (void)c; construct? Pavel

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Richard Heck
On 09/24/2012 01:07 PM, Pavel Sanda wrote: Stephan Witt wrote: -bool Messages::available() const +bool Messages::available(string const & c) { + (void)c; return false; } Why this (void)c; construct? Crushes an "unused variable" warning. rh

Re: Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Kornel Benko
Am Montag, 24. September 2012 um 14:10:33, schrieb Richard Heck > On 09/24/2012 01:07 PM, Pavel Sanda wrote: > > Stephan Witt wrote: > >> -bool Messages::available() const > >> +bool Messages::available(string const & c) > >> { > >> + (void)c; > >>return false; > >> } > >

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Richard Heck
On 09/24/2012 02:44 PM, Kornel Benko wrote: Am Montag, 24. September 2012 um 14:10:33, schrieb Richard Heck > On 09/24/2012 01:07 PM, Pavel Sanda wrote: > > Stephan Witt wrote: > >> -bool Messages::available() const > >> +bool Messages::available(string const & c) > >> {

Re: Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Pavel Sanda
Kornel Benko wrote: > Why not > bool Messages::available(string const & ) { ... } exactly ;) p

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Stephan Witt
Am 24.09.2012 um 21:49 schrieb Pavel Sanda : > Kornel Benko wrote: >> Why not >> bool Messages::available(string const & ) { ... } > > exactly ;) p I've copied this construct from src/support/Package.cpp Stephan

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Pavel Sanda
Stephan Witt wrote: > I've copied this construct from src/support/Package.cpp I see, but there it is forced by the ifdef structure. I also wonder why the (void) btw... Pavel

Re: [LyX master] avoid deprecated functions on Mac - use Qt instead

2012-09-24 Thread Stephan Witt
Am 24.09.2012 um 23:34 schrieb Pavel Sanda : > Stephan Witt wrote: >> I've copied this construct from src/support/Package.cpp > > I see, but there it is forced by the ifdef structure. I also wonder > why the (void) btw... Pavel To avoid other warnings. The best pattern IMHO is: