[Differential] [Commented On] D3987: Use nullptr in all Frameworks (just diff in KIO shown here)

Kevin Funk noreply at phabricator.kde.org
Wed Jan 18 16:24:48 UTC 2017


kfunk added a comment.


  In https://phabricator.kde.org/D3987#78421, @kossebau wrote:
  
  > Another possible issue with using `nullptr`as value for flags: it might break calling methods with overloads when once a pointer type and once a flags type is used. Not seen, but there is a risk.
  >
  >   void foo(T* t);
  >   void foo(QFlags<Flag> flags);
  >
  
  
  Both `foo(0)` & `foo(nullptr)` would call `void foo(T* t)`, no? => No change

REPOSITORY
  R280 Prison

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

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: kfunk, #frameworks, dfaure, kossebau
Cc: kossebau, dfaure, graesslin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170118/56056518/attachment.html>


More information about the Kde-frameworks-devel mailing list