Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: GitHub noreply@github.com Date: Fri, 13 Sep 2024 08:15:05 UTC Commit: 30f84de9a5eb477a0898664a0aac941af252fe21 https://github.com/geany/geany/commit/30f84de9a5eb477a0898664a0aac941af252fe...
Log Message: ----------- Merge pull request #3948 from techee/warning_fix2
Fix indentation to suppress clangd warnings
Modified Paths: -------------- src/editor.c src/libmain.c src/ui_utils.c
Modified: src/editor.c 3 lines changed, 1 insertions(+), 2 deletions(-) =================================================================== @@ -3516,8 +3516,7 @@ static gboolean is_comment_char(gchar c, gint lexer) { if ((c == '*' || c == '+') && lexer == SCLEX_D) return TRUE; - else - if (c == '*') + else if (c == '*') return TRUE;
return FALSE;
Modified: src/libmain.c 3 lines changed, 1 insertions(+), 2 deletions(-) =================================================================== @@ -1409,8 +1409,7 @@ gboolean main_quit(void) if (do_main_quit()) return TRUE; } - else - if (! prefs.confirm_exit || + else if (! prefs.confirm_exit || dialogs_show_question_full(NULL, GTK_STOCK_QUIT, GTK_STOCK_CANCEL, NULL, _("Do you really want to quit?"))) {
Modified: src/ui_utils.c 6 lines changed, 2 insertions(+), 4 deletions(-) =================================================================== @@ -528,11 +528,9 @@ void ui_update_menu_copy_items(GeanyDocument *doc)
if (IS_SCINTILLA(focusw)) enable = (doc == NULL) ? FALSE : sci_has_selection(doc->editor->sci); - else - if (GTK_IS_EDITABLE(focusw)) + else if (GTK_IS_EDITABLE(focusw)) enable = gtk_editable_get_selection_bounds(GTK_EDITABLE(focusw), NULL, NULL); - else - if (GTK_IS_TEXT_VIEW(focusw)) + else if (GTK_IS_TEXT_VIEW(focusw)) { GtkTextBuffer *buffer = gtk_text_view_get_buffer( GTK_TEXT_VIEW(focusw));
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).