1. 06 Nov, 2017 - 1 commit
  2. 04 Nov, 2017 - 1 commit
  3. 03 Nov, 2017 - 7 commits
  4. 02 Nov, 2017 - 4 commits
  5. 30 Oct, 2017 - 1 commit
  6. 29 Oct, 2017 - 4 commits
    • Thiago Macieira's avatar
      QFileSystemEngine: Fix renameat2() failures on non-local filesystems · ea0e868c
      Thiago Macieira authored
      
      The RENAME_NOREPLACE flag is supported for all Linux local filesystems,
      since that can be easily checked by the VFS layer (it knows which files
      exist and which ones don't). For non-local filesystems, the backend
      needs support and that might need server-side support too. So we may get
      EINVAL errors for those, in which case we fall back to link/unlink,
      which in turn can fall back to rename().
      
      EINVAL can also happen if we attempt to make a directory a
      subdirectory of itself. In that case, we will attempt to link() it,
      which will result in EPERM as we can't hardlink directories. Then we try
      rename() again, which should result in the expected EINVAL.
      
      Task-number: QTBUG-64008
      Change-Id: Icaa86fc7b54d4b368c0efffd14f09ca23602dd2e
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@qt.io>
      Reviewed-by: default avatarEdward Welbourne <edward.welbourne@qt.io>
      ea0e868c
    • Thiago Macieira's avatar
      Fix GCC -Wfloat-conversion warnings (available since GCC 4.9) · fb597603
      Thiago Macieira authored
      
      This warning used to be part of -Wconversion, but that generates too
      more noise than we're willing to fix now (like conversion from qint64 to
      int). The float conversion does trigger for conversion from double to
      float, as shown in all the QVectorND uses of float, but more
      importantly, it triggers on passing floats to ints.
      
      Change-Id: I69f37f9304f24709a823fffd14e69cfd33f75988
      Reviewed-by: default avatarAllan Sandfeld Jensen <allan.jensen@qt.io>
      fb597603
    • Thiago Macieira's avatar
      Mark the previously public qstringalgorithms.h functions private · 0e0f656f
      Thiago Macieira authored
      Discussed during Qt Contributor Summit 2017. We concluded that we don't
      want to make these functions public, as they do not follow Qt coding
      style API. Specifically,
      
         qStartsWith(a, b)
      
      is not easily understood which argument is the needle and which argument
      is the haystack (same problem memcpy() has). Compare that to
      
         a.startsWith(b)
      
      which can clearly be read in English as a subject-verb-object sentence.
      
      This commit removes the unit tests that called compare().
      
      Discussed-on: http://lists.qt-project.org/pipermail/development/2017-October/031060.html
      
      
      Change-Id: Icaa86fc7b54d4b368c0efffd14ee6205eb9043fb
      Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@qt.io>
      0e0f656f
    • Thiago Macieira's avatar
      QRandomGenerator: add system() and global() · 81f25166
      Thiago Macieira authored
      
      Right now,this does really nothing. This commit is just to allow us to
      transition the other modules (besides qtbase) to use the syntax that
      will become the API.
      
      I've marked three places to use the system CSPRNG:
       1) the QHash seed
       2) QUuid
       3) QAuthenticator
      
      I didn't think the HTTP multipart boundary needed to be
      cryptographically safe, so I changed that one to the global generator.
      
      Change-Id: Ib17dde1a1dbb49a7bba8fffd14ecf1938bd8ff61
      Reviewed-by: default avatarEdward Welbourne <edward.welbourne@qt.io>
      81f25166
  7. 28 Oct, 2017 - 3 commits
  8. 27 Oct, 2017 - 12 commits
  9. 26 Oct, 2017 - 5 commits
  10. 25 Oct, 2017 - 2 commits