diff options
| author | Kai Köhne <kai.koehne@qt.io> | 2022-10-19 14:37:19 +0200 |
|---|---|---|
| committer | Kai Köhne <kai.koehne@qt.io> | 2022-10-21 19:47:00 +0200 |
| commit | 603ff452284dddf166693e0c041968851f605742 (patch) | |
| tree | 6028ccbd12b02ee7e5182884315dcc34ba0159f9 /src/sql/kernel/qsqldatabase.cpp | |
| parent | 600752aa972d1e46792e18f1ec6dd0b519722e65 (diff) | |
syncqt: Do not needlessly rewrite header files on Windows
SyncScanner::writeIfDifferent compares the size in the buffer with
the size of the existing file on disk to see whether the file should
be rewritten. However, on Windows the sizes hardly ever matched, because
the implicit \n to \r\n conversion only happened when writing the file
in text mode using ofstream. Take this into account.
Change-Id: Ic689390396fcc3a640640378743bd058f48a1779
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/sql/kernel/qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
