summaryrefslogtreecommitdiffstats
path: root/src/ks_thmlhtml.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-12-19 16:24:16 +0100
committerSlávek Banko <slavek.banko@axis.cz>2020-12-19 16:24:16 +0100
commit3170f80d65103a1876a2f8532a1d70976299f031 (patch)
tree9a384ce6940f2992932f74ab7bdc1996cc734839 /src/ks_thmlhtml.cpp
parentae1bdd6a3c0a9466a9e67bcfa04600b551117e11 (diff)
downloadtdeio-sword-3170f80d65103a1876a2f8532a1d70976299f031.tar.gz
tdeio-sword-3170f80d65103a1876a2f8532a1d70976299f031.zip
Fix FTBFS with sword 1.9.x.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src/ks_thmlhtml.cpp')
-rw-r--r--src/ks_thmlhtml.cpp8
1 files changed, 4 insertions, 4 deletions
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) {