diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-02-22 15:18:27 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-26 13:23:49 +0100 |
commit | 3e4a3bafb639f2ec77d44c80662157745b68f546 (patch) | |
tree | e9f2c5fc8adfbc6eaf99e146bf2711f8bb9bb12a /.tag | |
parent | 47525e689694df0eec0a2f03e8bf67eed91da295 (diff) |
QFixed{,Size}: reformulate some functions in a constexpr-friendly way
The main change is the addition of a new constructor
that passes its argument into 'val' verbatim. In order
to disambiguate it from the existing QFixed(int)
constructor, it takes a second 'int' argument. This
is too ugly for public API, so it's private, and only
used by static QFixed fromFixed(int), which is the
existing named constructor with the same semantics.
The rest of the changes simply reformulate their
operations in terms of fromFixed().
This makes them ready to be constexpr'ed.
Change-Id: I2a3813d62bd4124064755de6b00526a60fc82c1d
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to '.tag')
0 files changed, 0 insertions, 0 deletions