| Index: tools/gn/source_file.cc
|
| diff --git a/tools/gn/source_file.cc b/tools/gn/source_file.cc
|
| index f9ca7d0885b85bf3c969d5d089ffceb988e18984..7744850d5c5966ea048f529641b5683ba5ebbe88 100644
|
| --- a/tools/gn/source_file.cc
|
| +++ b/tools/gn/source_file.cc
|
| @@ -19,6 +19,13 @@ SourceFile::SourceFile(const base::StringPiece& p)
|
| DCHECK(!EndsWithSlash(value_));
|
| }
|
|
|
| +SourceFile::SourceFile(SwapIn, std::string* value) {
|
| + value_.swap(*value);
|
| + DCHECK(!value_.empty());
|
| + DCHECK(value_[0] == '/');
|
| + DCHECK(!EndsWithSlash(value_));
|
| +}
|
| +
|
| SourceFile::~SourceFile() {
|
| }
|
|
|
|
|