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

Unified Diff: third_party/fips181/convert.cc

Issue 2571113002: Remove unnecessary typedefs in third_party/fips181. (Closed)
Patch Set: Solve for MSVC warning C4805. Created 4 years 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 | « third_party/fips181/README.chromium ('k') | third_party/fips181/fips181.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/fips181/convert.cc
diff --git a/third_party/fips181/convert.cc b/third_party/fips181/convert.cc
index 00af6a8eaa3a5111ea77f5b93b9514fc62dbfd5c..a8e0a2597a3343a20bd08dd3e8fbdc309cbd8b40 100644
--- a/third_party/fips181/convert.cc
+++ b/third_party/fips181/convert.cc
@@ -108,7 +108,7 @@ capitalize (char *syllable)
(void)memcpy((void *)&tmp, (void *)syllable, sizeof(tmp));
for(i=0; i < 26; i++)
if ( let[i] == tmp )
- if (is_restricted_symbol(clet[i]) != TRUE)
+ if (!is_restricted_symbol(clet[i]))
(void)memcpy ((void *)syllable, (void *)&clet[i], 1);
}
}
@@ -225,7 +225,7 @@ symb2name(char * syllable, char * h_syllable)
{126, "TILDE"}
};
int i = 0;
- int flag = FALSE;
+ bool flag = false;
if (strlen(syllable) == 1)
{
@@ -234,10 +234,10 @@ symb2name(char * syllable, char * h_syllable)
if(*syllable == ssn[i].symbol)
{
(void)memcpy((void*)h_syllable, (void*)ssn[i].name, strlen(ssn[i].name));
- flag = TRUE;
+ flag = true;
}
}
- if (flag != TRUE)
+ if (flag != true)
(void)memcpy((void*)h_syllable, (void*)syllable, strlen(syllable));
}
}
« no previous file with comments | « third_party/fips181/README.chromium ('k') | third_party/fips181/fips181.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698