mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-23 09:41:10 +00:00
Reuse IsEmpty for ConstString::operator bool().
llvm-svn: 327548
This commit is contained in:
parent
ac57bcc8b7
commit
d37339d25b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user