diff options
Diffstat (limited to 'lldb/source')
-rw-r--r-- | lldb/source/Host/common/FileSpec.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Host/common/FileSpec.cpp b/lldb/source/Host/common/FileSpec.cpp index ba9f9201fc4..8f398e05ada 100644 --- a/lldb/source/Host/common/FileSpec.cpp +++ b/lldb/source/Host/common/FileSpec.cpp @@ -352,10 +352,9 @@ FileSpec::SetFile (const char *pathname, bool resolve) // if (file_spec) // {} //---------------------------------------------------------------------- -FileSpec::operator -void*() const +FileSpec::operator bool() const { - return (m_directory || m_filename) ? const_cast<FileSpec*>(this) : NULL; + return m_filename || m_directory; } //---------------------------------------------------------------------- |