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

Q_CHECK_PTR does something in release mode

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes