summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-02-17 14:28:03 -0600
committerMatthias Clasen <mclasen@redhat.com>2022-02-17 14:28:03 -0600
commit6e6f2d674630b9ebe2d2c70a37d436d5fc1a1258 (patch)
tree46f75d004ec7ef2b04b536e2d10b44959e12439c /tests
parent0669a7c946bce99dac2c084af81b1c3ed421f19c (diff)
downloadpango-6e6f2d674630b9ebe2d2c70a37d436d5fc1a1258.tar.gz
Drop cached_iter argument
All callers of pango_itemize_with_base_dir were passing NULL, so just drop it.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-font.c2
-rw-r--r--tests/test-itemize.c2
-rw-r--r--tests/test-shape.c2
-rw-r--r--tests/testmisc.c6
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/test-font.c b/tests/test-font.c
index 4dcbd819..25589655 100644
--- a/tests/test-font.c
+++ b/tests/test-font.c
@@ -202,7 +202,7 @@ test_extents (void)
pango_font_description_free (desc);
dir = pango_context_get_base_dir (context);
- items = pango_itemize_with_base_dir (context, dir, str, 0, strlen (str), NULL, NULL);
+ items = pango_itemize_with_base_dir (context, dir, str, 0, strlen (str), NULL);
glyphs = pango_glyph_string_new ();
item = items->data;
pango_shape (str, strlen (str), NULL, 0, &item->analysis, glyphs, PANGO_SHAPE_NONE);
diff --git a/tests/test-itemize.c b/tests/test-itemize.c
index d58bdbc7..f917520f 100644
--- a/tests/test-itemize.c
+++ b/tests/test-itemize.c
@@ -156,7 +156,7 @@ test_file (const gchar *filename, GString *string)
itemize_attrs = pango_attr_list_filter (attrs, affects_itemization, NULL);
dir = pango_context_get_base_dir (context);
- items = pango_itemize_with_base_dir (context, dir, text, 0, length, itemize_attrs, NULL);
+ items = pango_itemize_with_base_dir (context, dir, text, 0, length, itemize_attrs);
apply_attributes_to_items (items, attrs);
pango_attr_list_unref (itemize_attrs);
diff --git a/tests/test-shape.c b/tests/test-shape.c
index e5e5b07b..2f8ab015 100644
--- a/tests/test-shape.c
+++ b/tests/test-shape.c
@@ -185,7 +185,7 @@ test_file (const gchar *filename, GString *string)
shape_attrs = pango_attr_list_filter (attrs, affects_break_or_shape, NULL);
dir = pango_context_get_base_dir (context);
- items = pango_itemize_with_base_dir (context, dir, text, 0, length, itemize_attrs, NULL);
+ items = pango_itemize_with_base_dir (context, dir, text, 0, length, itemize_attrs);
apply_attributes_to_items (items, shape_attrs);
pango_attr_list_unref (itemize_attrs);
diff --git a/tests/testmisc.c b/tests/testmisc.c
index 5d503f0d..93fc3cec 100644
--- a/tests/testmisc.c
+++ b/tests/testmisc.c
@@ -49,7 +49,7 @@ test_itemize_empty_crash (void)
PangoContext *context;
context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
- pango_itemize_with_base_dir (context, PANGO_DIRECTION_LTR, "", 0, 1, NULL, NULL);
+ pango_itemize_with_base_dir (context, PANGO_DIRECTION_LTR, "", 0, 1, NULL);
g_object_unref (context);
}
@@ -61,7 +61,7 @@ test_itemize_utf8 (void)
GList *result = NULL;
context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
- result = pango_itemize_with_base_dir (context, PANGO_DIRECTION_LTR, "\xc3\xa1\na", 3, 1, NULL, NULL);
+ result = pango_itemize_with_base_dir (context, PANGO_DIRECTION_LTR, "\xc3\xa1\na", 3, 1, NULL);
g_assert (result != NULL);
g_list_free_full (result, (GDestroyNotify)pango_item_free);
@@ -396,7 +396,7 @@ test_fallback_shape (void)
dir = pango_context_get_base_dir (context);
text = "Some text to sha​pe ﺄﻧﺍ ﻕﺍﺩﺭ ﻊﻟﻯ ﺄﻜﻟ ﺎﻟﺰﺟﺎﺟ ﻭ ﻩﺫﺍ ﻻ ﻱﺆﻠﻤﻨﻳ";
- items = pango_itemize_with_base_dir (context, dir, text, 0, strlen (text), NULL, NULL);
+ items = pango_itemize_with_base_dir (context, dir, text, 0, strlen (text), NULL);
for (l = items; l; l = l->next)
{
PangoItem *item = l->data;