diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2019-03-19 11:45:20 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-01 16:00:34 +0200 |
commit | da7f4a4c7652f0c26b5492330e55936abf173c12 (patch) | |
tree | b12c0e320d644ec218d8dde4949503e1ecee9bc9 /src/gui/opengl/qopengl.h | |
parent | b2bd2708b6f0e4d7fffbafc1ffd05c10578277aa (diff) |
Replace a constant with a predicate function using it
Rather than naming a "GMT" string so as to repeatedly test whether a
date-time's string representation ends in it, use a simple lambda to
do the test, so that the string is only used in one place anyway.
Makes the test code more readable.
Change-Id: I5afad9ad5d58702bea7f24e5e5688ea4d738ae0d
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/opengl/qopengl.h')
0 files changed, 0 insertions, 0 deletions