summaryrefslogtreecommitdiff
path: root/pango/break.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-04-17 08:33:55 +0200
committerTimm Bäder <mail@baedert.org>2020-06-08 19:17:10 +0200
commit17248221740fa476986248f8103a333b0e23db49 (patch)
treec7feadc7a8315dc7bf2133579cdebf10f50b3d2b /pango/break.c
parentcc5b6c7af26bbeb7862a978606ed4ac17b82c233 (diff)
downloadpango-17248221740fa476986248f8103a333b0e23db49.tar.gz
break: Make a local const
Make it clearer that we're not going to modify the attribute
Diffstat (limited to 'pango/break.c')
-rw-r--r--pango/break.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pango/break.c b/pango/break.c
index 2f5ff02e..26a79873 100644
--- a/pango/break.c
+++ b/pango/break.c
@@ -1927,9 +1927,8 @@ break_attrs (const char *text,
_pango_attr_list_get_iterator (&list, &iter);
do {
- PangoAttribute *attr;
+ const PangoAttribute *attr = pango_attr_iterator_get (&iter, PANGO_ATTR_ALLOW_BREAKS);
- attr = pango_attr_iterator_get (&iter, PANGO_ATTR_ALLOW_BREAKS);
if (attr && ((PangoAttrInt*)attr)->value == 0)
{
int start, end;