[kde] [Bug 509893] New: Use of NULL macro instead of nullptr in C++ code

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Wed Sep 24 21:37:23 BST 2025


https://bugs.kde.org/show_bug.cgi?id=509893

            Bug ID: 509893
           Summary: Use of NULL macro instead of nullptr in C++ code
    Classification: I don't know
           Product: kde
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: jshand2013 at gmail.com
  Target Milestone: ---

Operating System: openSUSE Tumbleweed 20250923
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ 7 150U
Memory: 16 GiB of RAM (15.3 GiB usable)
Graphics Processor: Intel® Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 16 5640

# Use of NULL macro instead of nullptr in C++ code

**Severity:** Low  
**Area:** Various  

## Description
Found ~10 occurrences of `NULL`. Prefer `nullptr` for type safety and clarity
in modern C++.

## Evidence
Automated scan found ~10 occurrences across the codebase.

## Steps to Reproduce
1. Search for `\bNULL\b` in sources.

## Expected Behavior
All null pointer literals use `nullptr`.

## Actual Behavior
`NULL` persists in some places.

## Suggested Fix / Next Steps
- Mechanical replacement to `nullptr` where appropriate.
- Add clang-tidy check (`modernize-use-nullptr`).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list