Reuse IsEmpty for ConstString::operator bool().

llvm-svn: 327548
This commit is contained in:
Tatyana Krasnukha 2018-03-14 18:29:33 +00:00
parent ac57bcc8b7
commit d37339d25b

View File

@ -140,7 +140,7 @@ public:
/// /b True this object contains a valid non-empty C string, \b
/// false otherwise.
//------------------------------------------------------------------
explicit operator bool() const { return m_string && m_string[0]; }
explicit operator bool() const { return !IsEmpty(); }
//------------------------------------------------------------------
/// Assignment operator