diff options
author | Sona Kurazyan <[email protected]> | 2021-07-22 18:49:45 +0200 |
---|---|---|
committer | Sona Kurazyan <[email protected]> | 2021-08-18 22:31:17 +0200 |
commit | 8aefbe67bf445d51f41c16ec00bc5ce3ec18ded5 (patch) | |
tree | 5485d33e6d07b3d19b8dfd794b799fb223321bfb /src/concurrent/qtconcurrentmap.cpp | |
parent | 96810e3863272eb5463ba5c07d82544810bdb3f8 (diff) |
QtConcurrent: fix examples of overloaded methods in docs
Wrap the overloaded methods in qOverload(), to make the examples
compile.
Also remove the extra whitespaces when declaring nested templates.
Pick-to: 6.1 6.2
Change-Id: If438caa6d705d9036dae45278fb26e080918da89
Reviewed-by: Karsten Heimrich <[email protected]>
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
Diffstat (limited to 'src/concurrent/qtconcurrentmap.cpp')
-rw-r--r-- | src/concurrent/qtconcurrentmap.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/concurrent/qtconcurrentmap.cpp b/src/concurrent/qtconcurrentmap.cpp index 8abfec4bafb..26f84cf054b 100644 --- a/src/concurrent/qtconcurrentmap.cpp +++ b/src/concurrent/qtconcurrentmap.cpp @@ -260,7 +260,10 @@ \snippet code/src_concurrent_qtconcurrentmap.cpp 8 - Note that when using QtConcurrent::mappedReduced(), you can mix the use of + Note the use of qOverload. It is needed to resolve the ambiguity for the + methods, that have multiple overloads. + + Also note that when using QtConcurrent::mappedReduced(), you can mix the use of normal and member functions freely: \snippet code/src_concurrent_qtconcurrentmap.cpp 9 |