Add overloaded operator-> to agi::line_iterator
Originally committed to SVN as r4846.
This commit is contained in:
parent
1bb8d16a45
commit
75285192a3
2 changed files with 5 additions and 2 deletions
|
@ -108,9 +108,12 @@ public:
|
||||||
, width(that.width)
|
, width(that.width)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
OutputType operator*() const {
|
OutputType const& operator*() const {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
OutputType const* operator->() const {
|
||||||
|
return &value;
|
||||||
|
}
|
||||||
line_iterator<OutputType>& operator++() {
|
line_iterator<OutputType>& operator++() {
|
||||||
next();
|
next();
|
||||||
return *this;
|
return *this;
|
||||||
|
|
|
@ -234,7 +234,7 @@ void HunspellSpellChecker::SetLanguage(wxString language) {
|
||||||
agi::line_iterator<std::string> end;
|
agi::line_iterator<std::string> end;
|
||||||
++userDic; // skip entry count line
|
++userDic; // skip entry count line
|
||||||
for (; userDic != end; ++userDic) {
|
for (; userDic != end; ++userDic) {
|
||||||
if ((*userDic).empty()) continue;
|
if (userDic->empty()) continue;
|
||||||
try {
|
try {
|
||||||
#ifdef WITH_OLD_HUNSPELL
|
#ifdef WITH_OLD_HUNSPELL
|
||||||
hunspell->put_word(conv->Convert(*userDic).c_str());
|
hunspell->put_word(conv->Convert(*userDic).c_str());
|
||||||
|
|
Loading…
Reference in a new issue