Skip to content

Commit b165cab

Browse files
committed
[build] inline color_unit::EMPTY in header
Related to #1603
1 parent 7357ee4 commit b165cab

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/base/color_spaces.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,9 +294,3 @@ lab_color::avg(const lab_color& other) const
294294
(this->lc_b + other.lc_b) / 2.0,
295295
};
296296
}
297-
298-
namespace styling {
299-
300-
constexpr color_unit color_unit::EMPTY = color_unit{transparent{}};
301-
302-
} // namespace styling

src/base/color_spaces.hh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,8 @@ private:
203203
}
204204
};
205205

206+
constexpr color_unit color_unit::EMPTY{transparent{}};
207+
206208
} // namespace styling
207209

208210
#endif

0 commit comments

Comments
 (0)