diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-01-21 02:43:25 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-01-21 02:43:25 +0000 |
commit | 9373572cf444580087ef1b6e94d07d93c71c33dd (patch) | |
tree | 6b745b84435ed20353543dab32bcaf419935e45e /apps/gperf | |
parent | 4a3bd5f87996b31dd47367348ed587384bfb5300 (diff) | |
download | ATCD-9373572cf444580087ef1b6e94d07d93c71c33dd.tar.gz |
ChangeLogTag:Thu Jan 20 18:18:00 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'apps/gperf')
-rw-r--r-- | apps/gperf/src/Hash_Table.cpp | 2 | ||||
-rw-r--r-- | apps/gperf/src/Key_List.cpp | 8 | ||||
-rw-r--r-- | apps/gperf/src/List_Node.cpp | 2 |
3 files changed, 5 insertions, 7 deletions
diff --git a/apps/gperf/src/Hash_Table.cpp b/apps/gperf/src/Hash_Table.cpp index ecd56920d10..43c72552cee 100644 --- a/apps/gperf/src/Hash_Table.cpp +++ b/apps/gperf/src/Hash_Table.cpp @@ -67,7 +67,7 @@ Hash_Table::~Hash_Table (void) keysig_width, "keysig")); - for (int i = ACE_static_cast (int, this->size_ - 1); i >= 0; i--) + for (int i = static_cast<int> (this->size_ - 1); i >= 0; i--) if (this->table_[i]) ACE_DEBUG ((LM_DEBUG, "%8d, %*s, %s\n", diff --git a/apps/gperf/src/Key_List.cpp b/apps/gperf/src/Key_List.cpp index dceb489f28b..68e6855ffe6 100644 --- a/apps/gperf/src/Key_List.cpp +++ b/apps/gperf/src/Key_List.cpp @@ -252,8 +252,7 @@ Key_List::read_keys (void) const char *delimiter = option.delimiter (); ACE_NEW_RETURN (this->head, List_Node (buffer, - ACE_static_cast (int, - ACE_OS::strcspn (buffer, + static_cast<int> (ACE_OS::strcspn (buffer, delimiter))), -1); for (temp = this->head; @@ -263,8 +262,7 @@ Key_List::read_keys (void) { ACE_NEW_RETURN (temp->next, List_Node (buffer, - ACE_static_cast (int, - ACE_OS::strcspn (buffer, + static_cast<int> (ACE_OS::strcspn (buffer, delimiter))), -1); this->total_keys++; @@ -1867,7 +1865,7 @@ Key_List::dump (void) u_int keysig_width = option.max_keysig_size () > ACE_OS::strlen ("keysig") ? option.max_keysig_size () - : ACE_static_cast (u_int, ACE_OS::strlen ("keysig")); + : static_cast<u_int> (ACE_OS::strlen ("keysig")); size_t key_length = this->max_key_length (); size_t keyword_width = key_length > ACE_OS::strlen ("keysig") diff --git a/apps/gperf/src/List_Node.cpp b/apps/gperf/src/List_Node.cpp index b5e22bc0bb9..ec71e81abce 100644 --- a/apps/gperf/src/List_Node.cpp +++ b/apps/gperf/src/List_Node.cpp @@ -69,7 +69,7 @@ List_Node::List_Node (char *k, int len) : link (0), next (0), key (k), - rest (option[TYPE] ? k + len + 1 : ACE_const_cast(char*, "")), + rest (option[TYPE] ? k + len + 1 : const_cast<char*> ("")), length (len), slot (0) { |