mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Add a TimeZoneProvider::dump().
Because gdb can't always see clearly inside m_zone_vector.
This commit is contained in:
@@ -739,3 +739,10 @@ TimeZoneProvider::get(int year) const noexcept
|
|||||||
return m_zone_vector.front().second;
|
return m_zone_vector.front().second;
|
||||||
return iter->second;
|
return iter->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
TimeZoneProvider::dump() const noexcept
|
||||||
|
{
|
||||||
|
for (auto zone : m_zone_vector)
|
||||||
|
std::cout << zone.first << ": " << zone.second->to_posix_string() << "\n";
|
||||||
|
}
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ public:
|
|||||||
TimeZoneProvider operator=(const TimeZoneProvider&) = delete;
|
TimeZoneProvider operator=(const TimeZoneProvider&) = delete;
|
||||||
TimeZoneProvider operator=(const TimeZoneProvider&&) = delete;
|
TimeZoneProvider operator=(const TimeZoneProvider&&) = delete;
|
||||||
TZ_Ptr get (int year) const noexcept;
|
TZ_Ptr get (int year) const noexcept;
|
||||||
|
void dump() const noexcept;
|
||||||
static const unsigned int min_year; //1400
|
static const unsigned int min_year; //1400
|
||||||
static const unsigned int max_year; //9999
|
static const unsigned int max_year; //9999
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user