diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-05-05 21:16:28 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-05-05 21:16:28 +0000 |
commit | cfe0d0763c9095f05dac8be633e38820c8f21538 (patch) | |
tree | ae0c901f25d09e86445be7783f6071190d823ed2 /ace/Caching_Utility_T.cpp | |
parent | 45a5a2249b80e4d967d655c72944c6a54bcbbd3a (diff) | |
download | ATCD-cfe0d0763c9095f05dac8be633e38820c8f21538.tar.gz |
ChangeLogTag:Wed May 5 14:14:53 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/Caching_Utility_T.cpp')
-rw-r--r-- | ace/Caching_Utility_T.cpp | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/ace/Caching_Utility_T.cpp b/ace/Caching_Utility_T.cpp index 351255c1dfa..19a3b25ebb2 100644 --- a/ace/Caching_Utility_T.cpp +++ b/ace/Caching_Utility_T.cpp @@ -58,10 +58,9 @@ ACE_Pair_Caching_Utility<KEY, VALUE, CONTAINER, ITERATOR, ATTRIBUTES>::clear_cac // Calculate the no of entries to remove from the cache depending // upon the <purge_percent>. size_t entries_to_remove - = ACE_MAX (ACE_static_cast (size_t, 1), - ACE_static_cast (size_t, - ACE_static_cast(double, purge_percent) - / 100 * current_map_size)); + = ACE_MAX (static_cast<size_t> (1), + static_cast<size_t> (static_cast<double> (purge_percent) + / 100 * current_map_size)); KEY *key_to_remove = 0; VALUE *value_to_remove = 0; @@ -159,10 +158,9 @@ ACE_Recyclable_Handler_Caching_Utility<KEY, VALUE, CONTAINER, ITERATOR, ATTRIBUT // Calculate the no of entries to remove from the cache depending // upon the <purge_percent>. size_t entries_to_remove - = ACE_MAX (ACE_static_cast (size_t, 1), - ACE_static_cast(size_t, - ACE_static_cast(double, purge_percent) - / 100 * current_map_size)); + = ACE_MAX (static_cast<size_t> (1), + static_cast<size_t> (static_cast<double> (purge_percent) + / 100 * current_map_size)); KEY *key_to_remove = 0; VALUE *value_to_remove = 0; @@ -279,10 +277,9 @@ ACE_Refcounted_Recyclable_Handler_Caching_Utility<KEY, VALUE, CONTAINER, ITERATO // Calculate the no of entries to remove from the cache depending // upon the <purge_percent>. size_t entries_to_remove - = ACE_MAX (ACE_static_cast (size_t, 1), - ACE_static_cast(size_t, - ACE_static_cast(double, purge_percent) - / 100 * available_entries)); + = ACE_MAX (static_cast<size_t> (1), + static_cast<size_t> (static_cast<double> (purge_percent) + / 100 * available_entries)); if (entries_to_remove >= available_entries || entries_to_remove == 0) @@ -404,10 +401,9 @@ ACE_Handler_Caching_Utility<KEY, VALUE, CONTAINER, ITERATOR, ATTRIBUTES>::clear_ // Calculate the no of entries to remove from the cache depending // upon the <purge_percent>. size_t entries_to_remove - = ACE_MAX (ACE_static_cast (size_t, 1), - ACE_static_cast(size_t, - ACE_static_cast(double, purge_percent) - / 100 * current_map_size)); + = ACE_MAX (static_cast<size_t> (1), + static_cast<size_t> (static_cast<double> (purge_percent) + / 100 * current_map_size)); KEY *key_to_remove = 0; VALUE *value_to_remove = 0; |