summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBFileSpec.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2013-10-04 21:35:29 +0000
committerSean Callanan <scallanan@apple.com>2013-10-04 21:35:29 +0000
commit9076c0fffbc1323db78b789f040b30295a3cfcf0 (patch)
treea90d0caeb8a23505699a660f87fb73d4a224b068 /lldb/source/API/SBFileSpec.cpp
parent210791a021a18e3eb60d4a67df6cd452006aa338 (diff)
Made all other "operator bool"s explicit and ensured
that all clients use them explicitly. This will hopefully prevent any future confusion where things get cast to types we don't expect. <rdar://problem/15146458> llvm-svn: 191984
Diffstat (limited to 'lldb/source/API/SBFileSpec.cpp')
-rw-r--r--lldb/source/API/SBFileSpec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBFileSpec.cpp b/lldb/source/API/SBFileSpec.cpp
index 4413689501a8..fc207d071dbc 100644
--- a/lldb/source/API/SBFileSpec.cpp
+++ b/lldb/source/API/SBFileSpec.cpp
@@ -61,7 +61,7 @@ SBFileSpec::operator = (const SBFileSpec &rhs)
bool
SBFileSpec::IsValid() const
{
- return *m_opaque_ap;
+ return m_opaque_ap->operator bool();
}
bool