D14443: Use nullptr

Alex noreply at phabricator.kde.org
Sat Jul 28 18:54:23 BST 2018


al1xz added a comment.


  In D14443#299656 <https://phabricator.kde.org/D14443#299656>, @markg wrote:
  
  > +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.
  
  
  Thanks for your advice I appreciate it and I will keep it in mind for the future, but let's keep it "old".

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/f185c09f/attachment.htm>


More information about the kfm-devel mailing list