Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20852

Coding style documentation regarding NULL/0 vs. nullptr is outdated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.7.0
    • Fix Version/s: Qt Creator 4.7.1
    • Component/s: Documentation
    • Labels:
      None
    • Commits:
      8e8598f2a34766880506f3cc4a3e4fb325eb29bb

      Description

      The coding style docs still recommend using 0 for null-pointers.

      However, nowadays nullptr is the recommended and used everywhere in Creator (except the places that have not been updated yet).

      Reference: https://doc-snapshots.qt.io/qtcreator-extending/coding-style.html#null-pointers

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-20852
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              aha_1980 André Hartmann
              Reporter:
              aha_1980 André Hartmann
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes