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

Typo in QByteArray - documentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.0
    • 5.1.1
    • Documentation
    • None
    • 80c8d5b276baead8c80eb95e3147ae32a1a03465

    Description

      In the documentation "QByteArray" are some code examples:

      ...

      QByteArray ba2("ca\0r\0t", 3);
      ba2.size(); // Returns 3.
      ba2.constData(); // Returns "ca\0" with terminating \0.

      QByteArray ba3("ca\0r\0t", 4);
      ba3.size(); // Returns 4.
      ba2.constData(); // Returns "ca\0r" with terminating \0.

      ...

      In the last line it should be:
      ba3.constData(); ...

      Attachments

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

        Activity

          People

            nierob Nierob
            blaggejoe Ralf Krapf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes