--- parser3/src/main/pa_stylesheet_manager.C 2003/03/26 18:52:50 1.16.2.7.2.7 +++ parser3/src/main/pa_stylesheet_manager.C 2003/10/02 07:26:47 1.19 @@ -7,7 +7,7 @@ #include "pa_config_includes.h" #ifdef XML -static const char* IDENT_STYLESHEET_MANAGER_C="$Date: 2003/03/26 18:52:50 $"; +static const char* IDENT_STYLESHEET_MANAGER_C="$Date: 2003/10/02 07:26:47 $"; #include "pa_stylesheet_manager.h" #include "pa_exception.h" @@ -37,7 +37,7 @@ static void expire_connections( Stylesheet_manager::connection_cache_type::key_type /*key*/, Stylesheet_manager::connection_cache_type::value_type stack, time_t older_dies) { - for(size_t i=0; i<=stack->top_index(); i++) + for(size_t i=0; itop_index(); i++) expire_connection(*stack->get(i), older_dies); } @@ -51,7 +51,7 @@ void Stylesheet_connection::close() { Stylesheet_manager::Stylesheet_manager(): prev_expiration_pass_time(0) { - cache_managers.put(StringBody("stylesheet"), this); + cache_managers.put(String::Body("stylesheet"), this); } Stylesheet_manager::~Stylesheet_manager() { @@ -76,7 +76,7 @@ Stylesheet_connection* Stylesheet_manage SYNCHRONIZED; if(connection_cache_type::value_type connections=connection_cache.get(file_spec)) - while(connections->top_index()>=0) { // there are cached stylesheets to that 'file_spec' + while(!connections->is_empty()) { // there are cached stylesheets to that 'file_spec' Stylesheet_connection* result=connections->pop(); if(result->connected()) // not expired? return result;