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

QByteArray Constructor: add Uninitialized example

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 6.8.0
    • Documentation
    • None
    • All

    Description

      You can read how constructs a byte array of size size with uninitialized contents here.

      I suggest add
      Example:

      QByteArray a(123, Qt::Initialization::Uninitialized);
      

      Because not clear that I shouldn't use QByteArray a(123, Qt::Initialization) but QByteArray a(123, Qt::Initialization::Uninitialized).

      Attachments

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

        Activity

          People

            docteam Qt Documentation Team
            dungeonlords Andrei Cherniaev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes