| Index: ui/PRESUBMIT.py
|
| diff --git a/ui/PRESUBMIT.py b/ui/PRESUBMIT.py
|
| index cd2e71c99ac02df5fe7172c90e558a7e60ba2240..0123fc6db2e075efb67b09ea1292598e58efadeb 100644
|
| --- a/ui/PRESUBMIT.py
|
| +++ b/ui/PRESUBMIT.py
|
| @@ -23,7 +23,7 @@ def CheckScopedPtr(input_api, output_api,
|
| for line_number, line in f.ChangedContents():
|
| # Disallow:
|
| # scoped_ptr<T>()
|
| - if re.search(r'\bscoped_ptr<.*?>\(\)', line):
|
| + if input_api.re.search(r'\bscoped_ptr<.*?>\(\)', line):
|
| errors.append(output_api.PresubmitError(
|
| '%s:%d uses scoped_ptr<T>(). Use nullptr instead.' %
|
| (f.LocalPath(), line_number)))
|
|
|