D14443: Use nullptr

Mark Gaiser noreply at phabricator.kde.org
Sat Jul 28 18:04:57 BST 2018


markg added a comment.


  +1
  
  It's good to have that!
  Also note that you "can" do that in a one-liner with C++14 with a little known library feature.
  
    delete std::exchange(object, nullptr);
  
  But it might be too new and unknown to use throughout the code... I leave it up to you to decide.

REPOSITORY
  R318 Dolphin

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

To: al1xz, #dolphin
Cc: markg, kfm-devel, spoorun, navarromorales, firef, andrebarros, emmanuelp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20180728/cd6b087a/attachment.htm>


More information about the kfm-devel mailing list