minor tweaks to try and cleanup como regresssions -- warnings about unreachable code and failure on microsec clock

[SVN r28817]
This commit is contained in:
Jeff Garland
2005-05-11 13:01:53 +00:00
parent d25dab13ef
commit a9ca8beb87
2 changed files with 2 additions and 4 deletions

View File

@@ -238,10 +238,8 @@ namespace local_time {
switch(check_dst(lt.date(), lt.time_of_day(), zone_)){
case is_not_in_dst:
return false;
break;
case is_in_dst:
return true;
break;
case ambiguous:
if(lt + zone_->dst_offset() < zone_->dst_local_end_time(lt.date().year())) {
return true;

View File

@@ -25,8 +25,8 @@ namespace local_time {
typedef date_time::time_itr<local_date_time> local_time_iterator;
typedef boost::date_time::second_clock<local_date_time> local_sec_clock;
typedef boost::date_time::microsec_clock<local_date_time> local_microsec_clock;
typedef date_time::second_clock<local_date_time> local_sec_clock;
typedef date_time::microsec_clock<local_date_time> local_microsec_clock;
//! Shared Pointer for time_zone and posix_time_zone objects
typedef boost::shared_ptr<time_zone> time_zone_ptr;