Skip to content

Commit

Permalink
add static
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Feb 23, 2024
1 parent 9c928ae commit 0b2d51e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/fluent_tray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ namespace fluent_tray
*/
template <typename InType, typename OutType>
inline void split_bits(InType input, OutType& upper, OutType& lower) noexcept {
constexpr auto bits = type2bit<OutType>() ;
static constexpr auto bits = type2bit<OutType>() ;
static const auto lower_mask = util::bit2mask(bits) ;

upper = static_cast<OutType>(reinterpret_cast<std::size_t>(input) >> bits) ;
Expand All @@ -212,7 +212,7 @@ namespace fluent_tray
*/
template <typename InType, typename OutType>
inline void concatenate_bits(InType upper, InType lower, OutType& out) noexcept {
constexpr auto bits = type2bit<InType>() ;
static constexpr auto bits = type2bit<InType>() ;
static const auto lower_mask = util::bit2mask(bits) ;

auto out_upper = static_cast<std::size_t>(upper) << bits ;
Expand Down Expand Up @@ -775,8 +775,8 @@ namespace fluent_tray
const std::string& icon_path="",
LONG menu_x_margin=5,
LONG menu_y_margin=5,
LONG menu_x_pad=5,
LONG menu_y_pad=5,
LONG menu_x_pad=10,
LONG menu_y_pad=5,
unsigned char opacity=255,
bool round_corner=true) {
if(!util::string2wstring(app_name, app_name_)) {
Expand Down

0 comments on commit 0b2d51e

Please sign in to comment.