zzag added a comment.

    const uint16_t *pos = (uint16_t*)array->data;
  
  Well, now you throw away const qualifiers. I think it should be something 
like this
  
    const uint16_t *pos = reinterpret_cast<const uint16_t*>(array->data);
  
  I suggest to get rid of C style casts because they aren't checked by the 
compiler.

REPOSITORY
  R127 KWayland

REVISION DETAIL
  https://phabricator.kde.org/D12388

To: romangg, #frameworks, davidedmundson, graesslin
Cc: graesslin, davidedmundson, zzag, cfeck, michaelh, bruns

Reply via email to