mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
gwin32.h: Make g_win32_clear_com() static inline
...for C++ implementations, as suggested by Luca Bacci. Make things safer in terms of avoiding ODR violations[1]. [1]: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4392#note_2296862
This commit is contained in:
parent
a3a95c2a0b
commit
4ab7977a4d
@ -181,7 +181,7 @@ G_END_DECLS
|
||||
* so we need to have a C++ version for this
|
||||
*/
|
||||
template <typename com_interface>
|
||||
inline void
|
||||
static inline void
|
||||
g_win32_clear_com (com_interface **com_obj)
|
||||
{
|
||||
IUnknown **unknown_com_obj = reinterpret_cast<IUnknown **>(com_obj);
|
||||
|
Loading…
x
Reference in New Issue
Block a user