[gnome-builder] libide: fix invalid precondition check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: fix invalid precondition check
- Date: Mon, 23 Mar 2015 23:35:38 +0000 (UTC)
commit 3414b6c1673ca48e3a7c0d35cd4c654b258e94e8
Author: Christian Hergert <christian hergert me>
Date: Mon Feb 16 13:50:48 2015 -0800
libide: fix invalid precondition check
libide/ide-search-context.c | 2 +-
libide/ide-search-provider.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libide/ide-search-context.c b/libide/ide-search-context.c
index b8c07a6..d7c2172 100644
--- a/libide/ide-search-context.c
+++ b/libide/ide-search-context.c
@@ -55,7 +55,7 @@ ide_search_context_provider_completed (IdeSearchContext *self,
IdeSearchProvider *provider)
{
g_return_if_fail (IDE_IS_SEARCH_CONTEXT (self));
- g_return_if_fail (IDE_IS_SEARCH_CONTEXT (provider));
+ g_return_if_fail (IDE_IS_SEARCH_PROVIDER (provider));
g_return_if_fail (g_list_find (self->providers, provider));
if (--self->in_progress == 0)
diff --git a/libide/ide-search-provider.c b/libide/ide-search-provider.c
index cc4347b..30f30af 100644
--- a/libide/ide-search-provider.c
+++ b/libide/ide-search-provider.c
@@ -45,7 +45,7 @@ ide_search_provider_get_verb (IdeSearchProvider *provider)
gint
ide_search_provider_get_priority (IdeSearchProvider *provider)
{
- g_return_val_if_fail (IDE_IS_SEARCH_PROVIDER (provider), NULL);
+ g_return_val_if_fail (IDE_IS_SEARCH_PROVIDER (provider), -1);
if (IDE_SEARCH_PROVIDER_GET_CLASS (provider)->get_priority)
return IDE_SEARCH_PROVIDER_GET_CLASS (provider)->get_priority (provider);
@@ -56,7 +56,7 @@ ide_search_provider_get_priority (IdeSearchProvider *provider)
gunichar
ide_search_provider_get_prefix (IdeSearchProvider *provider)
{
- g_return_val_if_fail (IDE_IS_SEARCH_PROVIDER (provider), NULL);
+ g_return_val_if_fail (IDE_IS_SEARCH_PROVIDER (provider), -1);
if (IDE_SEARCH_PROVIDER_GET_CLASS (provider)->get_prefix)
return IDE_SEARCH_PROVIDER_GET_CLASS (provider)->get_prefix (provider);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]