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

Add QTextStream::read|readAll|readLine(QString *) overloads to reuse QString's capacity

XMLWordPrintable

    • 4
    • Foundation PM Staging

      This is a corollary report to QTBUG-45166. QTextStream would be safer (compared to overloads with char* as output parameter) and faster (compared to overloads returning QString) if the following overloads were present to reuse QString's capacity:

      bool QTextStream::readInto(QString *s, qint64 maxLen);
      bool QTextStream::readAllInto(QString *s);
      

      The above overload signatures model along the already existing

      bool QTextStream::readLineInto(QString *s, qint64 maxLen); // already exists
      

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

            cnn Qt Core & Network
            ckakman Kayra Akman
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes