| Index: tools/gn/qt_creator_writer.cc
|
| diff --git a/tools/gn/qt_creator_writer.cc b/tools/gn/qt_creator_writer.cc
|
| index 96f247f5719a0a580fa874b37ce39bb6351b1e02..db0c9b86b31f83e3a3ef1494cbb6fd8f9ae29802 100644
|
| --- a/tools/gn/qt_creator_writer.cc
|
| +++ b/tools/gn/qt_creator_writer.cc
|
| @@ -32,7 +32,7 @@ base::FilePath::CharType kDefinesFileSuffix[] = FILE_PATH_LITERAL(".config");
|
|
|
| // static
|
| bool QtCreatorWriter::RunAndWriteFile(const BuildSettings* build_settings,
|
| - const Builder* builder,
|
| + const Builder& builder,
|
| Err* err,
|
| const std::string& root_target) {
|
| base::FilePath project_dir =
|
| @@ -60,7 +60,7 @@ bool QtCreatorWriter::RunAndWriteFile(const BuildSettings* build_settings,
|
| }
|
|
|
| QtCreatorWriter::QtCreatorWriter(const BuildSettings* build_settings,
|
| - const Builder* builder,
|
| + const Builder& builder,
|
| const base::FilePath& project_prefix,
|
| const std::string& root_target_name)
|
| : build_settings_(build_settings),
|
| @@ -81,7 +81,7 @@ void QtCreatorWriter::CollectDeps(const Target* target) {
|
| }
|
|
|
| bool QtCreatorWriter::DiscoverTargets() {
|
| - auto all_targets = builder_->GetAllResolvedTargets();
|
| + auto all_targets = builder_.GetAllResolvedTargets();
|
|
|
| if (root_target_name_.empty()) {
|
| targets_ = std::set<const Target*>(all_targets.begin(), all_targets.end());
|
| @@ -160,7 +160,7 @@ void QtCreatorWriter::Run() {
|
|
|
| for (const Target* target : targets_) {
|
| if (target->toolchain()->label() !=
|
| - builder_->loader()->GetDefaultToolchain())
|
| + builder_.loader()->GetDefaultToolchain())
|
| continue;
|
| HandleTarget(target);
|
| }
|
|
|