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 3, 2023
1 parent acf50d3 commit fddd8de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
@@ -2007,5 +2007,5 @@ as_cache_get_component_count (AsCache* cache)
0,
FALSE,
&error);
return components->len > 0;
return components->len;
}
@@ -2889,10 +2889,10 @@ as_pool_set_load_std_data_locations (AsPool *pool, gboolean enabled)
}

gboolean
as_pool_get_components_is_empty(AsPool* pool)
as_pool_is_empty (AsPool* pool)
{
AsPoolPrivate *priv = GET_PRIVATE (pool);
return as_cache_get_is_empty(priv->cache);
return as_cache_get_component_count (priv->cache) > 0;
}

/**
@@ -486,7 +486,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_get_components_is_empty(dpool));
g_assert_false (as_pool_is_empty (dpool));
}

/**

0 comments on commit fddd8de

Please sign in to comment.