forked from qt-creator/qt-creator
CppTools: CompilerOptionsBuilder takes project part by reference
...since it assumes a project part != 0 and does not participate in ownership. Change-Id: Ia9c1eca52776990576a2dac61e9144234b04c59c Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -215,7 +215,7 @@ private:
|
||||
class CPPTOOLS_EXPORT CompilerOptionsBuilder
|
||||
{
|
||||
public:
|
||||
CompilerOptionsBuilder(const ProjectPart::Ptr &projectPart);
|
||||
CompilerOptionsBuilder(const ProjectPart &projectPart);
|
||||
virtual ~CompilerOptionsBuilder() {}
|
||||
|
||||
QStringList options() const;
|
||||
@@ -237,7 +237,7 @@ protected:
|
||||
virtual QString defineOption() const;
|
||||
virtual QString includeOption() const;
|
||||
|
||||
const ProjectPart::Ptr m_projectPart;
|
||||
const ProjectPart m_projectPart;
|
||||
|
||||
private:
|
||||
QString defineLineToDefineOption(const QByteArray &defineLine);
|
||||
|
||||
Reference in New Issue
Block a user