From afe94306e3c542f0d499e7f7706ee5dec4028d8a Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 13 May 2016 17:21:31 -0700 Subject: Make CFX_WideString(const CFX_WideString&) explicit. BUG= Review-Url: https://codereview.chromium.org/1979723003 --- core/fxcrt/include/fx_string.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/fxcrt/include/fx_string.h') diff --git a/core/fxcrt/include/fx_string.h b/core/fxcrt/include/fx_string.h index 9019522eca..df8afb386f 100644 --- a/core/fxcrt/include/fx_string.h +++ b/core/fxcrt/include/fx_string.h @@ -250,8 +250,7 @@ class CFX_WideString { CFX_WideString(const FX_WCHAR* ptr, FX_STRSIZE len); - // TODO(tsepez): mark constructor as explicit. - CFX_WideString(const CFX_WideStringC& str); + explicit CFX_WideString(const CFX_WideStringC& str); CFX_WideString(const CFX_WideStringC& str1, const CFX_WideStringC& str2); ~CFX_WideString(); -- cgit v1.2.3