Fix FTBFS with sword 1.9.x.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/3/head
Slávek Banko 4 years ago
parent ae1bdd6a3c
commit 3170f80d65
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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) {

@ -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) {

@ -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) {

Loading…
Cancel
Save