Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(386)

Unified Diff: src/hunspell/hunspell.cxx

Issue 194683004: Fix -Wbool-conversion warnings in hunspell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/hunspell/
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « google.patch ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hunspell/hunspell.cxx
===================================================================
--- src/hunspell/hunspell.cxx (revision 206172)
+++ src/hunspell/hunspell.cxx (working copy)
@@ -352,7 +352,7 @@
int Hunspell::spell(const char * word, int * info, char ** root)
{
#ifdef HUNSPELL_CHROME_CLIENT
- if (pHMgr) pHMgr[0]->EmptyHentryCache();
+ if (pHMgr[0]) pHMgr[0]->EmptyHentryCache();
#endif
struct hentry * rv=NULL;
// need larger vector. For example, Turkish capital letter I converted a
@@ -715,7 +715,7 @@
int Hunspell::suggest(char*** slst, const char * word)
{
#ifdef HUNSPELL_CHROME_CLIENT
- if (pHMgr) pHMgr[0]->EmptyHentryCache();
+ if (pHMgr[0]) pHMgr[0]->EmptyHentryCache();
#endif
int onlycmpdsug = 0;
char cw[MAXWORDUTF8LEN];
« no previous file with comments | « google.patch ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698