The full patch (all Frameworks ported to using nullptr instead of null literals) changes around 9000 lines in total (see here:
):This is what I use locally to keep track of my changes:
% kde-frameworks-list.sh | xargs -n1 -I% sh -c "(cd %; git-difflinesonly.sh)" | head -Code39Barcode::Code39Barcode() : AbstractBarcode(), d(0){ +Code39Barcode::Code39Barcode() : AbstractBarcode(), d(nullptr){ -Code93Barcode::Code93Barcode() : AbstractBarcode(), d(0){ +Code93Barcode::Code93Barcode() : AbstractBarcode(), d(nullptr){ -DataMatrixBarcode::DataMatrixBarcode() : d(0) { +DataMatrixBarcode::DataMatrixBarcode() : d(nullptr) { -QRCodeBarcode::QRCodeBarcode() : AbstractBarcode(), d(0){ +QRCodeBarcode::QRCodeBarcode() : AbstractBarcode(), d(nullptr){ - BarcodeExampleWidget(Prison::AbstractBarcode* barcode, QWidget* parent=0); + BarcodeExampleWidget(Prison::AbstractBarcode* barcode, QWidget* parent=nullptr); % kde-frameworks-list.sh | xargs -n1 -I% sh -c "(cd %; git-difflinesonly.sh)" | wc -l 18592
-> ~9000 lines changed.
This change affects *all files*. Not just headers.
There are more options to limit the number of changes:
- Less changes: Just change headers (.h files) -- easy
- Even less changes: Just change public headers -- slightly more difficult for me to figure out *what* is public from a scripting POV
If you think we should limit our changes, please speak up. I wouldn't recommend it though. Let's move forward instead.
My plan was to push this after the next KF5 release.
Note: Also see discussion here: https://mail.kde.org/pipermail/kde-frameworks-devel/2016-December/040653.html