--- parser3/src/main/pa_stylesheet_connection.C 2004/03/30 08:32:17 1.2 +++ parser3/src/main/pa_stylesheet_connection.C 2012/03/16 09:24:14 1.7 @@ -1,17 +1,18 @@ /** @file Parser: Stylesheet connection implementation. - Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #include "pa_config_includes.h" #ifdef XML -static const char * const IDENT_STYLESHEET_CONNECTION_C="$Date: 2004/03/30 08:32:17 $"; #include "pa_stylesheet_connection.h" #include "pa_xml_exception.h" +volatile const char * IDENT_PA_STYLESHEET_CONNECTION_C="$Id: pa_stylesheet_connection.C,v 1.7 2012/03/16 09:24:14 moko Exp $" IDENT_PA_STYLESHEET_CONNECTION_H; + void Stylesheet_connection::load(time_t new_disk_time) { xsltStylesheet *nstylesheet; { @@ -24,10 +25,8 @@ void Stylesheet_connection::load(time_t } dependencies=pa_xmlGetDependencies(); } - if(xmlHaveGenericErrors()) { - GdomeException exc=0; - throw XmlException(new String(ffile_spec, String::L_TAINTED), exc); - } + if(xmlHaveGenericErrors()) + throw XmlException(new String(ffile_spec, String::L_TAINTED)); if(!nstylesheet) throw Exception("file.missing", new String(ffile_spec, String::L_TAINTED), @@ -38,7 +37,7 @@ void Stylesheet_connection::load(time_t prev_disk_time=new_disk_time; } -static void update_max_mtime(const String::Body stat_file_spec_cstr, bool /*value*/, time_t* max) { +static void update_max_mtime(HashStringValue::key_type stat_file_spec_cstr, bool /*value*/, time_t* max) { size_t size; time_t atime, mtime, ctime; file_stat(*new String(stat_file_spec_cstr, String::L_AS_IS), @@ -54,7 +53,7 @@ time_t Stylesheet_connection::get_disk_t assert(dependencies); time_t result=0; - dependencies->for_each(update_max_mtime, &result); + dependencies->for_each(update_max_mtime, &result); return result; }