D15791: Get rid of adding 'char' to a string pointer

Yuri Chornoivan noreply at phabricator.kde.org
Mon Oct 8 07:15:47 BST 2018


yurchor added a comment.


  In D15791#338918 <https://phabricator.kde.org/D15791#338918>, @mlaurent wrote:
  
  > Perhaps QString(name + QLatin1Char('/')).toUtf8().constData();
  
  
  This compiles even without QString(). Thanks.
  
  P. S. I'm not an expert, but isn't it again adding a char to a pointer?

REPOSITORY
  R352 Filelight

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

To: yurchor, sandsmark, mlaurent
Cc: kde-utils-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-utils-devel/attachments/20181008/e00544c3/attachment-0001.html>


More information about the Kde-utils-devel mailing list