summaryrefslogtreecommitdiffstats
path: root/src/sql/doc/snippets/sqldatabase
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-03-24 13:50:56 +0100
committerEdward Welbourne <edward.welbourne@qt.io>2023-04-14 15:19:02 +0200
commit91fedd50f062b1f67b54344e31d540a05b15c922 (patch)
tree1f82035b134964d25003fd5478e4cd26fb0b7a70 /src/sql/doc/snippets/sqldatabase
parent9aa87643d7b361e5df78727e0579c2991a5fda61 (diff)
tst_QDateTime constructor: adapt the year check to vary year
We check three sample dates, in different years, so don't compare their year() to 1970, but to their respective actual years. In the process, package the arrays iterated for these checks into a constexpr struct array and reverse them so that, instead of reverse-iterating and indexing, we can use a ranged-for loop. Change-Id: I214685346c637875a4ea31125c324851eb4308db Reviewed-by: Øystein Heskestad <oystein.heskestad@qt.io> Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io> Reviewed-by: Konrad Kujawa <konrad.kujawa@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/sql/doc/snippets/sqldatabase')
0 files changed, 0 insertions, 0 deletions