s/BUG_ON/assert/

This commit is contained in:
Johan Malm 2020-09-28 20:53:59 +01:00
parent 96e05057a3
commit 581f4ea0c3
8 changed files with 13 additions and 26 deletions

View file

@ -4,6 +4,7 @@
* Copyright Johan Malm 2020
*/
#include <assert.h>
#include "config/rcxml.h"
#include "labwc.h"
#include "theme/theme.h"
@ -39,7 +40,7 @@ struct wlr_box
deco_box(struct view *view, enum deco_part deco_part)
{
struct wlr_box box = { .x = 0, .y = 0, .width = 0, .height = 0 };
BUG_ON(!view);
assert(view);
switch (deco_part) {
case LAB_DECO_BUTTON_CLOSE:
box.width = rc.title_height;