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

bool ParseResult::operator bool() returns true if no error

    XMLWordPrintable

Details

    • 258e7ed9f (dev), b09ff420e (6.6), 0fbfde018 (6.5)
    • Foundation Sprint 86

    Description

      The current documentation claims it returns false.

          struct ParseResult
          {
              QString errorMessage;
              qsizetype errorLine = 0;
              qsizetype errorColumn = 0;
      
              explicit operator bool() const noexcept { return errorMessage.isEmpty(); }
          };
      

      Current doc : Returns true if an error is found by QDomDocument::setContent(); otherwise returns false.

      Attachments

        Issue Links

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

          Activity

            People

              Eddy Edward Welbourne
              mjtdcp Mathieu Joubert
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes