From 3eaf31220471d975f94cdbfd3db348e2758aeb9c Mon Sep 17 00:00:00 2001 From: Ko van der Sloot Date: Thu, 31 Oct 2024 10:37:11 +0100 Subject: [PATCH] adapt to Libfolie develop branch --- .github/workflows/foliautils.yml | 4 +++- src/FoLiA-pm.cxx | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/foliautils.yml b/.github/workflows/foliautils.yml index 29a1d42..9d8d05e 100644 --- a/.github/workflows/foliautils.yml +++ b/.github/workflows/foliautils.yml @@ -7,7 +7,7 @@ on: push: branches: - master - - actions + - develop paths: - configure.ac @@ -52,6 +52,7 @@ jobs: - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1 with: + branch: ${{ github.ref_name }} module: libfolia - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1 @@ -76,3 +77,4 @@ jobs: step: build status: ${{ env.action_status }} details: ${{ env.action_details }} + continue-on-error: true diff --git a/src/FoLiA-pm.cxx b/src/FoLiA-pm.cxx index 4efaf17..af68af2 100644 --- a/src/FoLiA-pm.cxx +++ b/src/FoLiA-pm.cxx @@ -60,8 +60,7 @@ KWargs getAllAttributes( const xmlNode *node ){ if ( node ){ xmlAttr *a = node->properties; while ( a ){ - atts.add( folia::to_string(a->name), - folia::to_string(a->children->content) ); + atts[folia::to_string(a->name)] = folia::to_string(a->children->content); a = a->next; } }