~unity-team/nux/xenial

« back to all changes in this revision

Viewing changes to Nux/XICClient.cpp

  • Committer: CI Train Bot
  • Author(s): Andrea Azzarone
  • Date: 2015-05-22 13:18:35 UTC
  • mfrom: (856.2.1 nux)
  • Revision ID: ci-train-bot@canonical.com-20150522131835-u0j17wkexjzy0gfk
Make sure nux can be built using clang. Fixes: #1422427
Approved by: Marco Trevisan (Treviño), PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include "XICClient.h"
23
23
 
24
 
using namespace std;
25
 
 
26
24
namespace nux
27
25
{
28
26
 
29
 
int const FEEDBACK_MASK = (XIMUnderline | XIMReverse);
30
 
 
31
27
XICClient::XICClient()
32
28
  : xic_(nullptr)
33
29
  , xim_style_(0)
220
216
      return (s == XIMPreeditArea)      ? style1 : style2;
221
217
    else if (s | t | XIMPreeditNothing)
222
218
      return (s == XIMPreeditNothing)   ? style1 : style2;
223
 
    else if (s | t | XIMPreeditNone)
 
219
    else /*if (s | t | XIMPreeditNone)*/
224
220
      return (s == XIMPreeditNone)      ? style1 : style2;
225
221
  }
226
222
  else
234
230
      return (s == XIMStatusArea)      ? style1 : style2;
235
231
    else if (s | t | XIMStatusNothing)
236
232
      return (s == XIMStatusNothing)   ? style1 : style2;
237
 
    else if (s | t | XIMStatusNone)
 
233
    else /*if (s | t | XIMStatusNone)*/
238
234
      return (s == XIMStatusNone)      ? style1 : style2;
239
235
  }
240
236
}