Cleanup: various non functional C++ changes
This commit is contained in:
@@ -3616,7 +3616,7 @@ static void cursor_surface_handle_leave(void *data, wl_surface *wl_surface, wl_o
|
||||
}
|
||||
|
||||
static void cursor_surface_handle_preferred_buffer_scale(void * /*data*/,
|
||||
struct wl_surface * /*wl_surface*/,
|
||||
wl_surface * /*wl_surface*/,
|
||||
int32_t factor)
|
||||
{
|
||||
/* Only available in interface version 6. */
|
||||
@@ -3624,7 +3624,7 @@ static void cursor_surface_handle_preferred_buffer_scale(void * /*data*/,
|
||||
}
|
||||
|
||||
static void cursor_surface_handle_preferred_buffer_transform(void * /*data*/,
|
||||
struct wl_surface * /*wl_surface*/,
|
||||
wl_surface * /*wl_surface*/,
|
||||
uint32_t transform)
|
||||
{
|
||||
/* Only available in interface version 6. */
|
||||
@@ -6143,13 +6143,13 @@ static void output_handle_scale(void *data, wl_output * /*wl_output*/, const int
|
||||
output->system->output_scale_update(output);
|
||||
}
|
||||
|
||||
static void output_handle_name(void * /*data*/, struct wl_output * /*wl_output*/, const char *name)
|
||||
static void output_handle_name(void * /*data*/, wl_output * /*wl_output*/, const char *name)
|
||||
{
|
||||
/* Only available in interface version 4. */
|
||||
CLOG_INFO(LOG, 2, "name (%s)", name);
|
||||
}
|
||||
static void output_handle_description(void * /*data*/,
|
||||
struct wl_output * /*wl_output*/,
|
||||
wl_output * /*wl_output*/,
|
||||
const char *description)
|
||||
{
|
||||
/* Only available in interface version 4. */
|
||||
|
||||
@@ -1197,7 +1197,7 @@ static void xdg_toplevel_handle_close(void *data, xdg_toplevel * /*xdg_toplevel*
|
||||
}
|
||||
|
||||
static void xdg_toplevel_handle_configure_bounds(void *data,
|
||||
struct xdg_toplevel * /*xdg_toplevel*/,
|
||||
xdg_toplevel * /*xdg_toplevel*/,
|
||||
int32_t width,
|
||||
int32_t height)
|
||||
{
|
||||
@@ -1213,8 +1213,8 @@ static void xdg_toplevel_handle_configure_bounds(void *data,
|
||||
}
|
||||
}
|
||||
static void xdg_toplevel_handle_wm_capabilities(void * /*data*/,
|
||||
struct xdg_toplevel * /*xdg_toplevel*/,
|
||||
struct wl_array * /*capabilities*/)
|
||||
xdg_toplevel * /*xdg_toplevel*/,
|
||||
wl_array * /*capabilities*/)
|
||||
{
|
||||
/* Only available in interface version 5. */
|
||||
CLOG_INFO(LOG, 2, "wm_capabilities");
|
||||
@@ -1595,7 +1595,7 @@ static void surface_handle_leave(void *data, wl_surface * /*wl_surface*/, wl_out
|
||||
}
|
||||
|
||||
static void surface_handle_preferred_buffer_scale(void * /*data*/,
|
||||
struct wl_surface * /*wl_surface*/,
|
||||
wl_surface * /*wl_surface*/,
|
||||
int32_t factor)
|
||||
{
|
||||
/* Only available in interface version 6. */
|
||||
@@ -1603,7 +1603,7 @@ static void surface_handle_preferred_buffer_scale(void * /*data*/,
|
||||
}
|
||||
|
||||
static void surface_handle_preferred_buffer_transform(void * /*data*/,
|
||||
struct wl_surface * /*wl_surface*/,
|
||||
wl_surface * /*wl_surface*/,
|
||||
uint32_t transform)
|
||||
{
|
||||
/* Only available in interface version 6. */
|
||||
|
||||
@@ -101,7 +101,7 @@ void aligned_free(void *ptr)
|
||||
* Helps catching issues (in debug build) caused by an unintended allocator type change when there
|
||||
* are allocation happened.
|
||||
*/
|
||||
static void assert_for_allocator_change(void)
|
||||
static void assert_for_allocator_change()
|
||||
{
|
||||
/* NOTE: Assume that there is no "sticky" internal state which would make switching allocator
|
||||
* type after all allocations are freed unsafe. In fact, it should be safe to change allocator
|
||||
@@ -110,7 +110,7 @@ static void assert_for_allocator_change(void)
|
||||
assert(MEM_get_memory_blocks_in_use() == 0);
|
||||
}
|
||||
|
||||
void MEM_use_lockfree_allocator(void)
|
||||
void MEM_use_lockfree_allocator()
|
||||
{
|
||||
/* NOTE: Keep in sync with static initialization of the variables. */
|
||||
|
||||
@@ -150,7 +150,7 @@ void MEM_use_lockfree_allocator(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
void MEM_use_guarded_allocator(void)
|
||||
void MEM_use_guarded_allocator()
|
||||
{
|
||||
assert_for_allocator_change();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user