Commit f15c9cd9 authored by Yoshifumi Inoue's avatar Yoshifumi Inoue Committed by Commit Bot

Add missing explicit modifier to FindBuffer constructor

This patch adds missing |explicit| modifier to |FindBuffer| constructor to avoid
implicit type conversion for improving code health.


This patch is follow-up of CL[1] which introduces this constructor.

[1] http://crrev.com/c/1424677 Allow FindBuffer to find text bounded by a range

Change-Id: Ic4bf4d675ef26ff36687a6cfb1feb995e20a37de
Reviewed-on: https://chromium-review.googlesource.com/c/1454056Reviewed-by: default avatarRakina Zata Amni <rakina@chromium.org>
Commit-Queue: Rakina Zata Amni <rakina@chromium.org>
Auto-Submit: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#629044}
parent 73ab1941
......@@ -22,7 +22,7 @@ class CORE_EXPORT FindBuffer {
STACK_ALLOCATED();
public:
FindBuffer(const EphemeralRangeInFlatTree& range);
explicit FindBuffer(const EphemeralRangeInFlatTree& range);
static EphemeralRangeInFlatTree FindMatchInRange(
const EphemeralRangeInFlatTree& range,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment