Skip to content

Commit

Permalink
fixed variable name: brocker -> broker in enchant spellchecker
Browse files Browse the repository at this point in the history
  • Loading branch information
Ri0n committed Sep 9, 2017
1 parent 2327748 commit 9882f72
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tools/spellchecker/enchantchecker.cpp
Expand Up @@ -31,20 +31,20 @@
#include "enchant++.h"
#include "enchantchecker.h"

static enchant::Broker *brocker;
static enchant::Broker *broker;

EnchantChecker::EnchantChecker()
: spellers_(EnchantDictList())
, allLanguages_(QStringList())
{
#ifdef HAVE_ENCHANT2
brocker = new enchant::Broker();
broker = new enchant::Broker();
#else
brocker = enchant::Broker::instance();
broker = enchant::Broker::instance();
#endif
if (brocker)
if (broker)
{
brocker->list_dicts(enchantDictDescribeFn, static_cast<void*>(this));
broker->list_dicts(enchantDictDescribeFn, static_cast<void*>(this));
setActiveLanguages(getAllLanguages());
}
}
Expand All @@ -53,7 +53,7 @@ EnchantChecker::~EnchantChecker()
{
clearSpellers();
#ifdef HAVE_ENCHANT2
delete brocker;
delete broker;
#endif
}

Expand Down Expand Up @@ -125,7 +125,7 @@ void EnchantChecker::setActiveLanguages(const QList<QString>& langs)
continue;

try {
spellers_ << brocker->request_dict(lang.toStdString());
spellers_ << broker->request_dict(lang.toStdString());
} catch (enchant::Exception &e) {
qWarning() << QString("Enchant error: %1").arg(e.what());
}
Expand Down

0 comments on commit 9882f72

Please sign in to comment.