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

Add a QTemporaryFile/Dir (named?) ctor that doesn't expect a placeholder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8.1, 6.9.0 Beta1
    • Core: I/O
    • None
    • 2

      The problem with QTemporaryFile's scanning for XXXXXX is when the pattern already includes such an instance. Yes, you can safely (after QTBUG-132597) assume that it will always replace the last one, so you can append .XXXXXX and it will always do the correct thing, but if a user relies on the "if the file name doesn't contain XXXXXX, appends it" behaviour of the constructor, then if the filename does contain XXXXXX, it might be replaced at an unexpected place. A version that doesn't scan would also ... well, not have to scan, saving time.

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

            thiago Thiago Macieira
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes