• Stephan Bergmann's avatar
    Replace some macros with constexpr functions · f175ded3
    Stephan Bergmann yazdı
    ...in preparation of teaching loplugin:redundantcast about C-style casts in
    macro bodies.
    
    TRGB_COLORDATA contained a curious cast to sal_Int32 (instead of sal_uInt32 aka
    ColorData), but for one that affected (by accident?) only the fist term of the
    ... | ... | ... | ... expression (so the ultimate expression was of type
    sal_uInt32), and for another before a83698b9
    "tools: split out color macros into own header" there were two different
    definitions of TRGB_COLORDATA, and only one casted to sal_Int32 (the other to
    ColorData).
    
    Change-Id: I5bfffe5614d0424202268ef7adaf6a0da61ec30a
    Reviewed-on: https://gerrit.libreoffice.org/35679Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    f175ded3
salgtype.hxx 2.69 KB