Skip to content
  • Jiří Paleček's avatar
    Fix missing parentheses around macro · 22563ca5
    Jiří Paleček authored and Raphael Kubo da Costa's avatar Raphael Kubo da Costa committed
    Summary:
    Defining macro isRunning by
    
      #define isRunning() something == something_else
    
    has its problems. Elsewhere in the code, there is
    ```
    if(!isRunning())
    ```
    which expands to `!something == something_else`, not what you would probably mean. I have found this due to a gcc warning.
    
    Reviewers: #kopete, rakuco
    
    Reviewed By: rakuco
    
    Subscribers: rakuco, kopete-devel
    
    Tags: #kopete
    
    Differential Revision: https://phabricator.kde.org/D18445
    22563ca5