From 3170f80d65103a1876a2f8532a1d70976299f031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 19 Dec 2020 16:24:16 +0100 Subject: [PATCH] Fix FTBFS with sword 1.9.x. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/ks_gbfhtml.cpp | 4 ++-- src/ks_osishtml.cpp | 4 ++-- src/ks_thmlhtml.cpp | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ks_gbfhtml.cpp b/src/ks_gbfhtml.cpp index f8f2a8d..f31ce7a 100644 --- a/src/ks_gbfhtml.cpp +++ b/src/ks_gbfhtml.cpp @@ -176,10 +176,10 @@ namespace KioSword { else if (!strcmp(tag.getName(), "RF")) { SWBuf type = tag.getAttribute("type"); SWBuf footnoteNumber = tag.getAttribute("swordFootnote"); - VerseKey *vkey; + const VerseKey *vkey; // see if we have a VerseKey * or descendant try { - vkey = SWDYNAMIC_CAST(VerseKey, u->key); + vkey = SWDYNAMIC_CAST(const VerseKey, u->key); } catch ( ... ) { } if (vkey) { diff --git a/src/ks_osishtml.cpp b/src/ks_osishtml.cpp index 6bda142..1f4dadc 100644 --- a/src/ks_osishtml.cpp +++ b/src/ks_osishtml.cpp @@ -157,10 +157,10 @@ namespace KioSword { if (type != "strongsMarkup") { // leave strong's markup notes out, in the future we'll probably have different option filters to turn different note types on or off SWBuf footnoteNumber = tag.getAttribute("swordFootnote"); - VerseKey *vkey; + const VerseKey *vkey; // see if we have a VerseKey * or descendant try { - vkey = SWDYNAMIC_CAST(VerseKey, u->key); + vkey = SWDYNAMIC_CAST(const VerseKey, u->key); } catch ( ... ) { } if (vkey) { diff --git a/src/ks_thmlhtml.cpp b/src/ks_thmlhtml.cpp index 6dc51be..568a6d4 100644 --- a/src/ks_thmlhtml.cpp +++ b/src/ks_thmlhtml.cpp @@ -104,10 +104,10 @@ namespace KioSword { if (!tag.isEmpty()) { SWBuf type = tag.getAttribute("type"); SWBuf footnoteNumber = tag.getAttribute("swordFootnote"); - VerseKey *vkey; + const VerseKey *vkey; // see if we have a VerseKey * or descendant try { - vkey = SWDYNAMIC_CAST(VerseKey, u->key); + vkey = SWDYNAMIC_CAST(const VerseKey, u->key); } catch ( ... ) { } if (vkey) { @@ -150,10 +150,10 @@ namespace KioSword { // FIXME for Kio-Sword else { SWBuf footnoteNumber = u->startTag.getAttribute("swordFootnote"); - VerseKey *vkey; + const VerseKey *vkey; // see if we have a VerseKey * or descendant try { - vkey = SWDYNAMIC_CAST(VerseKey, u->key); + vkey = SWDYNAMIC_CAST(const VerseKey, u->key); } catch ( ... ) {} if (vkey) {