aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/classview
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2019-08-16 09:57:59 +0200
committerTobias Hunger <tobias.hunger@qt.io>2019-08-19 14:27:06 +0000
commitd272a64eab51a1017d1a81b71512e2135f51ce93 (patch)
treeb1d012ab53bd4bf55010834d5809b0ba56a7dd64 /src/plugins/classview
parent109a8b18292b3c1263b88e610fe7f9724eed2bd8 (diff)
Project: Remove Project::document() method
The document is used to do file watching, which may or may not be ideal. So make sure we do not leak the information how we watch files into the API and its users. The method is not used sensibly anywhere in creator, so it seems safe to remove it entirely. Change-Id: Ieed755bd5c852875378e4e96665dc906499975b0 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/classview')
-rw-r--r--src/plugins/classview/classviewparser.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/classview/classviewparser.cpp b/src/plugins/classview/classviewparser.cpp
index 13f258b9ebc..07892d04d5d 100644
--- a/src/plugins/classview/classviewparser.cpp
+++ b/src/plugins/classview/classviewparser.cpp
@@ -285,9 +285,7 @@ ParserTreeItem::ConstPtr Parser::parse()
for (const Project *prj : SessionManager::projects()) {
ParserTreeItem::Ptr item;
QString prjName(prj->displayName());
- QString prjType(prjName);
- if (prj->document())
- prjType = prj->projectFilePath().toString();
+ QString prjType = prj->projectFilePath().toString();
SymbolInformation inf(prjName, prjType);
item = ParserTreeItem::Ptr(new ParserTreeItem());