mirror of
https://github.com/labwc/labwc.git
synced 2026-02-23 01:40:18 -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"
|
||||
|
||||
static void
|
||||
|
|
@ -169,7 +170,7 @@ has_mapped_view(struct wl_list *wl_list)
|
|||
struct view *
|
||||
desktop_next_mapped_view(struct view *current)
|
||||
{
|
||||
BUG_ON(!current);
|
||||
assert(current);
|
||||
struct server *server = current->server;
|
||||
if (!has_mapped_view(&server->views)) {
|
||||
return NULL;
|
||||
|
|
@ -183,7 +184,7 @@ desktop_next_mapped_view(struct view *current)
|
|||
void
|
||||
desktop_focus_next_mapped_view(struct view *current)
|
||||
{
|
||||
BUG_ON(!current);
|
||||
assert(current);
|
||||
struct view *view = desktop_next_mapped_view(current);
|
||||
desktop_focus_view(view);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue