Skip to content
Permalink
Browse files
Apply suggestions from code review
Co-authored-by: Matthias Klumpp <matthias@tenstral.net>
  • Loading branch information
aleixpol and ximion committed Mar 15, 2023
1 parent 4778a50 commit a1a5ebc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
@@ -193,7 +193,7 @@ GPtrArray *as_cache_search (AsCache *cache,
gboolean sort,
GError **error);

guint as_cache_get_component_count(AsCache *cache);
guint as_cache_get_component_count (AsCache *cache);

G_END_DECLS

@@ -2892,7 +2892,7 @@ gboolean
as_pool_is_empty (AsPool* pool)
{
AsPoolPrivate *priv = GET_PRIVATE (pool);
return as_cache_get_component_count (priv->cache) > 0;
return as_cache_get_component_count (priv->cache) == 0;
}

/**
@@ -487,7 +487,7 @@ test_pool_read (void)
g_assert_cmpstr (as_component_get_id (cpt_s), ==, "org.inkscape.Inkscape");
g_clear_pointer (&result, g_ptr_array_unref);

g_assert_false (as_pool_is_empty(dpool));
g_assert_false (as_pool_is_empty (dpool));
}

/**

0 comments on commit a1a5ebc

Please sign in to comment.