diff options
author | Tatyana Krasnukha <tatyana@synopsys.com> | 2018-03-14 18:29:33 +0000 |
---|---|---|
committer | Tatyana Krasnukha <tatyana@synopsys.com> | 2018-03-14 18:29:33 +0000 |
commit | d37339d25b728964280050f80c7b21370946ab8a (patch) | |
tree | 14150f63e3c8b0b066974ebed327ba95532bae1e | |
parent | ac57bcc8b7a5cd9ec7c8758e5ccce2a499bb016b (diff) | |
download | bcm5719-llvm-d37339d25b728964280050f80c7b21370946ab8a.tar.gz bcm5719-llvm-d37339d25b728964280050f80c7b21370946ab8a.zip |
Reuse IsEmpty for ConstString::operator bool().
llvm-svn: 327548
-rw-r--r-- | lldb/include/lldb/Utility/ConstString.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/include/lldb/Utility/ConstString.h b/lldb/include/lldb/Utility/ConstString.h index fbf1a9bf536..c4b32a62fd8 100644 --- a/lldb/include/lldb/Utility/ConstString.h +++ b/lldb/include/lldb/Utility/ConstString.h @@ -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 |