diff options
author | Topi Reinio <topi.reinio@qt.io> | 2023-02-27 16:31:51 +0000 |
---|---|---|
committer | Topi Reinio <topi.reinio@qt.io> | 2023-03-02 09:24:33 +0000 |
commit | cb0b5c16bc56f84028a378ae91608720ab63e3f5 (patch) | |
tree | 3b304f02b102b7371d2ca2715cbf70eea122c601 /dependencies.yaml | |
parent | 177c702534a6e43d4bde03433b24c397e2c12329 (diff) | |
download | qttools-cb0b5c16bc56f84028a378ae91608720ab63e3f5.tar.gz |
qdoc: Remove Config::lastLocation()
Config stored an internal Location, used for error reporting. This
location instance was updated whenever a config variable
was queried. This prevented parallelization of code that accesses
Config via the singleton instance.
Remove Config::lastLocation, and move functions that return a
configuration variable as a string, string list, boolean, etc. to
ConfigVar itself. Keep existing access functions in Config as
simple wrappers.
Provide Config::get() that returns a reference to ConfigVar, and
provide location info via ConfigVar::location(). This allows call
sites to get location info for a configuration variable on demand.
Change-Id: I72c6f5cec699e44aa2f3164e6019a04adbd1ab07
Reviewed-by: Luca Di Sera <luca.disera@qt.io>
Diffstat (limited to 'dependencies.yaml')
0 files changed, 0 insertions, 0 deletions