summaryrefslogtreecommitdiffstats
path: root/src/tdeio_sword.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-01-12 15:46:13 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-01-12 17:36:42 +0100
commitfed195cae2cb376b3205e176f7a61c401bf00ace (patch)
tree85a78fcd94d1dd6dd1a20a23da466bc4dd5a62ab /src/tdeio_sword.cpp
parentf938ddefb96507d85e76252b1824772172ee0a19 (diff)
downloadtdeio-sword-fed195cae2cb376b3205e176f7a61c401bf00ace.tar.gz
tdeio-sword-fed195cae2cb376b3205e176f7a61c401bf00ace.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 374417024147717d195e1830bb72d057995b0aa8)
Diffstat (limited to 'src/tdeio_sword.cpp')
-rw-r--r--src/tdeio_sword.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tdeio_sword.cpp b/src/tdeio_sword.cpp
index 4702b9c..0e244e2 100644
--- a/src/tdeio_sword.cpp
+++ b/src/tdeio_sword.cpp
@@ -327,30 +327,30 @@ namespace KioSword
m_redirect.module = val;
}
else if (!strcasecmp(key, "modtype")) {
- if (!strcasecmp(val, "bible")) {
+ if (!strcasecmp(val.latin1(), "bible")) {
m_moduletype = DEFBIBLE;
m_action = REDIRECT_QUERY;
- } else if (!strcasecmp(val, "greekstrongs")) {
+ } else if (!strcasecmp(val.latin1(), "greekstrongs")) {
m_moduletype = GREEKSTRONGS;
m_action = REDIRECT_QUERY;
- } else if (!strcasecmp(val, "hebrewstrongs")) {
+ } else if (!strcasecmp(val.latin1(), "hebrewstrongs")) {
m_moduletype = HEBREWSTRONGS;
m_action = REDIRECT_QUERY;
- } else if (!strcasecmp(val, "greekmorph")) {
+ } else if (!strcasecmp(val.latin1(), "greekmorph")) {
m_moduletype = GREEKMORPH;
m_action = REDIRECT_QUERY;
- } else if (!strcasecmp(val, "hebrewmorph")) {
+ } else if (!strcasecmp(val.latin1(), "hebrewmorph")) {
m_moduletype = HEBREWMORPH;
m_action = REDIRECT_QUERY;
}
}
// search
else if (!strcasecmp(key, "stype")) {
- if (!strcasecmp(val, "words")) {
+ if (!strcasecmp(val.latin1(), "words")) {
m_stype = Renderer::SEARCH_WORDS;
- } else if (!strcasecmp(val, "phrase")) {
+ } else if (!strcasecmp(val.latin1(), "phrase")) {
m_stype = Renderer::SEARCH_PHRASE;
- } else if (!strcasecmp(val, "regex")) {
+ } else if (!strcasecmp(val.latin1(), "regex")) {
m_stype = Renderer::SEARCH_REGEX;
} else {
m_stype = Renderer::SEARCH_WORDS;