summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2022-04-16 11:38:14 +0100
committerReuben Thomas <rrt@sc3d.org>2022-04-16 15:09:20 +0100
commit9d339afa55f1eea005f8b542fcca518b12fe8dd0 (patch)
treed72374ab39f97d8218649dc71fcba50a27b80f63 /src
parente523f845add260106335cecfe08534cf8732cc29 (diff)
downloadenchant-9d339afa55f1eea005f8b542fcca518b12fe8dd0.tar.gz
enchant++.h: make is_added() method return a result (fix #304)
Diffstat (limited to 'src')
-rw-r--r--src/enchant++.h6
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) {