[nemiver] Fix wrong values returned
- From: Fabien Parent <fparent src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nemiver] Fix wrong values returned
- Date: Sat, 16 Jun 2012 18:27:09 +0000 (UTC)
commit da787dcdc3fb0821677b05f81b4e4a4b6565e42e
Author: Fabien Parent <parent f gmail com>
Date: Fri Jun 15 21:06:07 2012 +0200
Fix wrong values returned
* src/persp/dbgperspective/nmv-dbg-perspective.cc
(DBGPerspective::open_file_real)
(DBGPerspective::get_breakpoint): Fix wrong values returned
src/persp/dbgperspective/nmv-dbg-perspective.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index e226e5d..d48115f 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -5343,9 +5343,9 @@ SourceEditor*
DBGPerspective::open_file_real (const UString &a_path,
int a_current_line)
{
- RETURN_VAL_IF_FAIL (m_priv, false);
+ RETURN_VAL_IF_FAIL (m_priv, 0);
if (a_path.empty ())
- return false;
+ return 0;
SourceEditor *source_editor = 0;
if ((source_editor = get_source_editor_from_path (a_path)))
@@ -6853,7 +6853,7 @@ DBGPerspective::get_breakpoint (const Loc &a_location) const
{
switch (a_location.kind ()) {
case Loc::UNDEFINED_LOC_KIND:
- return false;
+ return 0;
case Loc::SOURCE_LOC_KIND: {
const SourceLoc &loc =
static_cast<const SourceLoc&> (a_location);
@@ -6863,7 +6863,7 @@ DBGPerspective::get_breakpoint (const Loc &a_location) const
// TODO: For now we cannot get a breakpoint set by function.
// For that we would need to be able to get the address at
// which a breakpoint set by function would be set to.
- return false;
+ return 0;
}
case Loc::ADDRESS_LOC_KIND: {
const AddressLoc &loc =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]