[gnome-builder] debugger: only check for guaranteed types
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] debugger: only check for guaranteed types
- Date: Sat, 24 Mar 2018 08:36:42 +0000 (UTC)
commit e78775daf1063de6e87b883e45161cd57da35c83
Author: Christian Hergert <chergert redhat com>
Date: Sat Mar 24 01:36:13 2018 -0700
debugger: only check for guaranteed types
All we can guarantee here is that it is an async result.
src/libide/debugger/ide-debugger.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libide/debugger/ide-debugger.c b/src/libide/debugger/ide-debugger.c
index 22e2b5b93..2cf34f9dd 100644
--- a/src/libide/debugger/ide-debugger.c
+++ b/src/libide/debugger/ide-debugger.c
@@ -928,7 +928,7 @@ ide_debugger_move_finish (IdeDebugger *self,
GError **error)
{
g_return_val_if_fail (IDE_IS_DEBUGGER (self), FALSE);
- g_return_val_if_fail (G_IS_TASK (result), FALSE);
+ g_return_val_if_fail (G_IS_ASYNC_RESULT (result), FALSE);
return IDE_DEBUGGER_GET_CLASS (self)->move_finish (self, result, error);
}
@@ -1590,7 +1590,7 @@ ide_debugger_list_frames_finish (IdeDebugger *self,
GError **error)
{
g_return_val_if_fail (IDE_IS_DEBUGGER (self), NULL);
- g_return_val_if_fail (G_IS_TASK (result), NULL);
+ g_return_val_if_fail (G_IS_ASYNC_RESULT (result), NULL);
return IDE_DEBUGGER_GET_CLASS (self)->list_frames_finish (self, result, error);
}
@@ -1789,7 +1789,7 @@ ide_debugger_list_locals_finish (IdeDebugger *self,
GError **error)
{
g_return_val_if_fail (IDE_IS_DEBUGGER (self), NULL);
- g_return_val_if_fail (G_IS_TASK (result), NULL);
+ g_return_val_if_fail (G_IS_ASYNC_RESULT (result), NULL);
return IDE_DEBUGGER_GET_CLASS (self)->list_locals_finish (self, result, error);
}
@@ -1848,7 +1848,7 @@ ide_debugger_list_params_finish (IdeDebugger *self,
GError **error)
{
g_return_val_if_fail (IDE_IS_DEBUGGER (self), NULL);
- g_return_val_if_fail (G_IS_TASK (result), NULL);
+ g_return_val_if_fail (G_IS_ASYNC_RESULT (result), NULL);
return IDE_DEBUGGER_GET_CLASS (self)->list_params_finish (self, result, error);
}
@@ -1895,7 +1895,7 @@ ide_debugger_list_registers_finish (IdeDebugger *self,
GError **error)
{
g_return_val_if_fail (IDE_IS_DEBUGGER (self), NULL);
- g_return_val_if_fail (G_IS_TASK (result), NULL);
+ g_return_val_if_fail (G_IS_ASYNC_RESULT (result), NULL);
return IDE_DEBUGGER_GET_CLASS (self)->list_registers_finish (self, result, error);
}
@@ -1945,7 +1945,7 @@ ide_debugger_disassemble_finish (IdeDebugger *self,
GError **error)
{
g_return_val_if_fail (IDE_IS_DEBUGGER (self), NULL);
- g_return_val_if_fail (G_IS_TASK (result), NULL);
+ g_return_val_if_fail (G_IS_ASYNC_RESULT (result), NULL);
return IDE_DEBUGGER_GET_CLASS (self)->disassemble_finish (self, result, error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]