mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
s/BUG_ON/assert/
This commit is contained in:
parent
96e05057a3
commit
581f4ea0c3
8 changed files with 13 additions and 26 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#include <assert.h>
|
||||
#include "labwc.h"
|
||||
|
||||
struct xdg_deco {
|
||||
|
|
@ -73,7 +74,7 @@ static void
|
|||
handle_commit(struct wl_listener *listener, void *data)
|
||||
{
|
||||
struct view *view = wl_container_of(listener, view, commit);
|
||||
BUG_ON(!view->surface);
|
||||
assert(view->surface);
|
||||
view->w = view->surface->current.width;
|
||||
view->h = view->surface->current.height;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue