diff options
author | David Robillard <d@drobilla.net> | 2022-05-26 13:27:22 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-26 13:27:22 -0400 |
commit | 52650784331844f8a92c5e9c4ba443a468743867 (patch) | |
tree | d3e5477eeb641344466d2994b1d052defff69f36 /plugins/eg-sampler.lv2/sampler_ui.c | |
parent | ec24b754f1fa81f05b011a444a1dd8d67d066d31 (diff) | |
download | lv2-52650784331844f8a92c5e9c4ba443a468743867.tar.xz |
Suppress new warnings in clang-tidy 13
Diffstat (limited to 'plugins/eg-sampler.lv2/sampler_ui.c')
-rw-r--r-- | plugins/eg-sampler.lv2/sampler_ui.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/eg-sampler.lv2/sampler_ui.c b/plugins/eg-sampler.lv2/sampler_ui.c index 533e720..630fc22 100644 --- a/plugins/eg-sampler.lv2/sampler_ui.c +++ b/plugins/eg-sampler.lv2/sampler_ui.c @@ -365,7 +365,7 @@ port_event(LV2UI_Handle handle, const LV2_Atom_Object* obj = (const LV2_Atom_Object*)atom; if (obj->body.otype == ui->uris.patch_Set) { const char* path = read_set_file(&ui->uris, obj); - if (path && (!ui->filename || strcmp(path, ui->filename))) { + if (path && (!ui->filename || !!strcmp(path, ui->filename))) { g_free(ui->filename); ui->filename = g_strdup(path); gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(ui->file_button), @@ -447,11 +447,15 @@ extension_data(const char* uri) { static const LV2UI_Show_Interface show = {ui_show, ui_hide}; static const LV2UI_Idle_Interface idle = {ui_idle}; + if (!strcmp(uri, LV2_UI__showInterface)) { return &show; - } else if (!strcmp(uri, LV2_UI__idleInterface)) { + } + + if (!strcmp(uri, LV2_UI__idleInterface)) { return &idle; } + return NULL; } |