Ticket #12893: 0026-Terminal-Fix-Wlogical-not-parentheses.patch

File 0026-Terminal-Fix-Wlogical-not-parentheses.patch, 842 bytes (added by mt, 3 years ago)
  • src/apps/terminal/TermView.cpp

    From 92b02892c17169996f6e73d1bc0574617f3c2ee7 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Thu, 28 Jul 2016 05:18:13 +0900
    Subject: [PATCH 26/27] Terminal: Fix -Wlogical-not-parentheses
    
    ---
     src/apps/terminal/TermView.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/apps/terminal/TermView.cpp b/src/apps/terminal/TermView.cpp
    index dc41228..2a4da3c 100644
    a b TermView::MessageReceived(BMessage *msg)  
    15941594            int32 encodingID;
    15951595            BMessage specifier;
    15961596            if (msg->GetCurrentSpecifier(&i, &specifier) == B_OK
    1597                 && !strcmp("encoding",
     1597                && strcmp("encoding",
    15981598                    specifier.FindString("property", i)) == 0) {
    15991599                msg->FindInt32 ("data", &encodingID);
    16001600                SetEncoding(encodingID);