Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-9134

Q_CHECK_PTR does something in release mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 5.6.0 RC
    • 4.6.2
    • Documentation
    • None
    • Windows XP, compiling in release mode
    • 8c9d6a334c695aea2ea6492466bb5b0e6f26c17d

      I don't know if this would be considered a bug in the code or in the documentation.

      The documentation clearly states:
      Q_CHECK_PTR does nothing if QT_NO_DEBUG was defined during compilation.

      However, if QT_NO_EXCEPTIONS is not set, the above statement is not true. It actually calls qBadAlloc which throws a std::bad_alloc exception. At the very least, this should be noted in the documentation.

        For Gerrit Dashboard: QTBUG-9134
        # Subject Branch Project Status CR V

            rakeller Rainer Keller
            rob.bachrach@tycoelectronics.com Robert Bachrach
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes