[prev in list] [next in list] [prev in thread] [next in thread]
List: lyx-devel
Subject: Re: [LyX/2.3.x] Qt4 compilable again
From: Pavel Sanda <sanda () lyx ! org>
Date: 2022-11-25 10:28:22
Message-ID: 20221125102822.GA3197264 () jabberwock ! ucw ! cz
[Download RAW message or body]
On Thu, Nov 24, 2022 at 04:21:04PM +0000, Jos=E9 Matos wrote:
> On Wed, 2022-11-23 at 22:47 +0100, Pavel Sanda wrote:
> > +#else
> > +#define qDegreesToRadians(degree) (degree * (M_PI / 180))
> > +#endif
> =
> Probably here it does not mater but in general the safer version would
> be to move the parenthesis from right to let, i.e.
> =
> (degree) * M_PI/180
> =
> I am thinking about examples like qDegreesToRadians(a+b)
Right. But if you are after general safety you need to have outer as well
otherwise qDegreesToRadians(!a) will mean something different...
Pavel
-- =
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic