diff options
author | Reuben Thomas <rrt@sc3d.org> | 2022-04-16 11:38:14 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2022-04-16 15:09:20 +0100 |
commit | 9d339afa55f1eea005f8b542fcca518b12fe8dd0 (patch) | |
tree | d72374ab39f97d8218649dc71fcba50a27b80f63 /src | |
parent | e523f845add260106335cecfe08534cf8732cc29 (diff) | |
download | enchant-9d339afa55f1eea005f8b542fcca518b12fe8dd0.tar.gz |
enchant++.h: make is_added() method return a result (fix #304)
Diffstat (limited to 'src')
-rw-r--r-- | src/enchant++.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/enchant++.h b/src/enchant++.h index 458a707..e474a71 100644 --- a/src/enchant++.h +++ b/src/enchant++.h @@ -126,9 +126,9 @@ namespace enchant utf8word.size()); } - void is_added (const std::string & utf8word) { - enchant_dict_is_added (m_dict, utf8word.c_str(), - utf8word.size()); + bool is_added (const std::string & utf8word) { + return enchant_dict_is_added (m_dict, utf8word.c_str(), + utf8word.size()); } void remove (const std::string & utf8word) { |