Skip to content

Commit 0cc2aa4

Browse files
committed
Fix some cleanup errors
1 parent 4cff3b4 commit 0cc2aa4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/include/elements/base_view.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ namespace cycfi { namespace elements
325325
};
326326

327327
////////////////////////////////////////////////////////////////////////////
328-
inline void base_view::draw(cairo_t* /* ctx */, rect /* area */) {};
328+
inline void base_view::draw(cairo_t* /* ctx */, rect /* area */) {}
329329
inline void base_view::click(mouse_button /* btn */) {}
330330
inline void base_view::drag(mouse_button /* btn */) {}
331331
inline void base_view::cursor(point /* p */, cursor_tracking /* status */) {}

lib/src/support/font.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ namespace cycfi { namespace elements
6969
return (a * (1.0 - f)) + (b * f);
7070
}
7171

72+
#ifndef __APPLE__
73+
auto const& cairo_user_data_key()
74+
{
75+
static const cairo_user_data_key_t key = {};
76+
return key;
77+
}
78+
#endif
7279
namespace fc
7380
{
7481
struct font_config_deleter

0 commit comments

Comments
 (0)