diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-04-19 12:18:07 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-04-19 12:18:07 +0000 |
commit | 1f37ef7ef033e8fdfc23e24da23bc1fd08e478c5 (patch) | |
tree | 0f5f467389717baf6c422fcdc64fc7f583965ab6 /ace/Capabilities.cpp | |
parent | bbb960bc702217af071831ec06ff1043b8a57506 (diff) | |
download | ATCD-1f37ef7ef033e8fdfc23e24da23bc1fd08e478c5.tar.gz |
ChangeLogTag: Wed Apr 19 11:39:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ace/Capabilities.cpp')
-rw-r--r-- | ace/Capabilities.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ace/Capabilities.cpp b/ace/Capabilities.cpp index 279c373d161..ba84b006a27 100644 --- a/ace/Capabilities.cpp +++ b/ace/Capabilities.cpp @@ -39,29 +39,29 @@ ACE_Capabilities::parse (const ACE_TCHAR *buf, ACE_TString &cap) { if (*buf == ACE_LIB_TEXT ('\\')) { - buf++; + ++buf; if (*buf == ACE_LIB_TEXT ('E') || *buf == ACE_LIB_TEXT ('e')) { cap += ACE_ESC; - buf++; + ++buf; continue; } else if (*buf == ACE_LIB_TEXT ('r')) { cap += ACE_LIB_TEXT ('\r'); - buf++; + ++buf; continue; } else if (*buf == ACE_LIB_TEXT ('n')) { cap += ACE_LIB_TEXT ('\n'); - buf++; + ++buf; continue; } else if (*buf == ACE_LIB_TEXT ('t')) { cap += ACE_LIB_TEXT ('\t'); - buf++; + ++buf; continue; } else if (*buf == ACE_LIB_TEXT ('\\')) @@ -203,7 +203,7 @@ ACE_Capabilities::is_entry (const ACE_TCHAR *name, const ACE_TCHAR *line) { // Skip blanks or irrelevant characters while (*line && isspace(*line)) - line++; + ++line; // End of line reached if (*line == ACE_LIB_TEXT ('\0')) @@ -220,7 +220,7 @@ ACE_Capabilities::is_entry (const ACE_TCHAR *name, const ACE_TCHAR *line) // Skip puntuaction char if neccesary. if (*line == ACE_LIB_TEXT ('|') || *line == ACE_LIB_TEXT (',')) - line++; + ++line; else { ACE_DEBUG ((LM_DEBUG, @@ -293,7 +293,7 @@ static int is_empty (const ACE_TCHAR *line) { while (*line && isspace (*line)) - line++; + ++line; return *line == ACE_LIB_TEXT ('\0') || *line == ACE_LIB_TEXT ('#'); } @@ -302,7 +302,7 @@ static int is_line (const ACE_TCHAR *line) { while (*line && isspace (*line)) - line++; + ++line; return *line != ACE_LIB_TEXT ('\0'); } @@ -321,7 +321,7 @@ ACE_Capabilities::getent (const ACE_TCHAR *fname, const ACE_TCHAR *name) int done; ACE_TString line; - + while (0 == (done = (this->getline (fp, line) == -1)) && is_empty (line.c_str ())) continue; |