aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/generichighlighter/definitiondownloader.h
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2016-02-15 16:26:59 +0100
committerEike Ziller <eike.ziller@qt.io>2016-04-29 09:46:38 +0000
commit26e4943f7253e88ac0d05e9e9f9d18dd56982a0b (patch)
treebd2bba04f0487b6d172449e2de8d694118b40cbb /src/plugins/texteditor/generichighlighter/definitiondownloader.h
parent65ce4d61bcbedb8e937824c66efa119405fda9eb (diff)
GenericHighlighter: Use new Utils::map for downloading definitions
Gets rid of the dummy callable object for QtConcurrent::map. Change-Id: I306b238ed72f798b88c859e76def3f97c8ee1582 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/generichighlighter/definitiondownloader.h')
-rw-r--r--src/plugins/texteditor/generichighlighter/definitiondownloader.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/plugins/texteditor/generichighlighter/definitiondownloader.h b/src/plugins/texteditor/generichighlighter/definitiondownloader.h
index f9010fd873..95ab812114 100644
--- a/src/plugins/texteditor/generichighlighter/definitiondownloader.h
+++ b/src/plugins/texteditor/generichighlighter/definitiondownloader.h
@@ -63,16 +63,5 @@ private:
Status m_status;
};
-// Currently QtConcurrent::map does not support passing member functions for sequence of pointers
-// (only works for operator.*) which is the case for the downloaders held by the manager. Then the
-// reason for the following functor. If something is implemented (for example a type traits) to
-// handle operator->* in QtConcurrent::map this functor will not be necessary since it would be
-// possible to directly pass DefinitionDownloader::run.
-struct DownloaderStarter
-{
- void operator()(DefinitionDownloader *downloader)
- { downloader->run(); }
-};
-
} // namespace Internal
} // namespace TextEditor