Changeset View
Changeset View
Standalone View
Standalone View
languages/clang/duchain/missingincludepathproblem.cpp
Show All 35 Lines | |||||
36 | } | 36 | } | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | class AddCustomIncludePathAction : public KDevelop::IAssistantAction | 39 | class AddCustomIncludePathAction : public KDevelop::IAssistantAction | ||
40 | { | 40 | { | ||
41 | Q_OBJECT | 41 | Q_OBJECT | ||
42 | 42 | | |||
43 | public: | 43 | public: | ||
44 | AddCustomIncludePathAction(const KDevelop::IndexedString& path) | 44 | explicit AddCustomIncludePathAction(const KDevelop::IndexedString& path) | ||
45 | : m_path(path) | 45 | : m_path(path) | ||
46 | {} | 46 | {} | ||
47 | 47 | | |||
48 | QString description() const override | 48 | QString description() const override | ||
49 | { | 49 | { | ||
50 | return i18n("Add Custom Include Path"); | 50 | return i18n("Add Custom Include Path"); | ||
51 | } | 51 | } | ||
52 | 52 | | |||
53 | void execute() override | 53 | void execute() override | ||
54 | { | 54 | { | ||
55 | openConfigurationPage(m_path.str()); | 55 | openConfigurationPage(m_path.str()); | ||
56 | emit executed(this); | 56 | emit executed(this); | ||
57 | } | 57 | } | ||
58 | 58 | | |||
59 | private: | 59 | private: | ||
60 | KDevelop::IndexedString m_path; | 60 | KDevelop::IndexedString m_path; | ||
61 | }; | 61 | }; | ||
62 | 62 | | |||
63 | class OpenProjectForFileAssistant : public KDevelop::IAssistantAction | 63 | class OpenProjectForFileAssistant : public KDevelop::IAssistantAction | ||
64 | { | 64 | { | ||
65 | public: | 65 | public: | ||
66 | OpenProjectForFileAssistant(const KDevelop::IndexedString& path) | 66 | explicit OpenProjectForFileAssistant(const KDevelop::IndexedString& path) | ||
67 | : m_path(path) | 67 | : m_path(path) | ||
68 | {} | 68 | {} | ||
69 | 69 | | |||
70 | QString description() const override | 70 | QString description() const override | ||
71 | { | 71 | { | ||
72 | return i18n("Open Project"); | 72 | return i18n("Open Project"); | ||
73 | }; | 73 | }; | ||
74 | 74 | | |||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |