Skip to content
Permalink
Browse files

fixed variable name: brocker -> broker in enchant spellchecker

  • Loading branch information...
Ri0n committed Sep 9, 2017
1 parent 2327748 commit 9882f7256120391cb664c22245889028f360b55b
Showing with 7 additions and 7 deletions.
  1. +7 −7 tools/spellchecker/enchantchecker.cpp
@@ -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());
}
}
@@ -53,7 +53,7 @@ EnchantChecker::~EnchantChecker()
{
clearSpellers();
#ifdef HAVE_ENCHANT2
delete brocker;
delete broker;
#endif
}

@@ -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());
}

0 comments on commit 9882f72

Please sign in to comment.
You can’t perform that action at this time.