Made GetConditionText const everywhere. Made it return NULL when there's no condition
like the doc's say it should. Make sure we have a condition before we set up a test whether
we have one, so we only present a "could not parse condition" error if we actually have a condition.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@133088 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Breakpoint/BreakpointOptions.cpp b/source/Breakpoint/BreakpointOptions.cpp
index eb7c2c4..d623886 100644
--- a/source/Breakpoint/BreakpointOptions.cpp
+++ b/source/Breakpoint/BreakpointOptions.cpp
@@ -217,12 +217,12 @@
}
const char *
-BreakpointOptions::GetConditionText ()
+BreakpointOptions::GetConditionText () const
{
if (m_condition_ap.get())
return m_condition_ap->GetUserText();
else
- return "<No Condition>";
+ return NULL;
}
//------------------------------------------------------------------