mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
revert unwise data structure change
This commit is contained in:
parent
cbe50f4681
commit
8f39375f4c
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
@ -763,7 +764,7 @@ public:
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a reference to the shared string ordered by id
|
/// Returns a reference to the shared string ordered by id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
const std::unordered_map<std::size_t, rich_text> &shared_strings_by_id() const;
|
const std::map<std::size_t, rich_text> &shared_strings_by_id() const;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a reference to the shared string related to the specified index
|
/// Returns a reference to the shared string related to the specified index
|
||||||
|
|
|
@ -118,7 +118,7 @@ struct workbook_impl
|
||||||
|
|
||||||
std::list<worksheet_impl> worksheets_;
|
std::list<worksheet_impl> worksheets_;
|
||||||
std::unordered_map<rich_text, std::size_t, rich_text_hash> shared_strings_ids_;
|
std::unordered_map<rich_text, std::size_t, rich_text_hash> shared_strings_ids_;
|
||||||
std::unordered_map<std::size_t, rich_text> shared_strings_values_;
|
std::map<std::size_t, rich_text> shared_strings_values_;
|
||||||
|
|
||||||
optional<stylesheet> stylesheet_;
|
optional<stylesheet> stylesheet_;
|
||||||
|
|
||||||
|
|
|
@ -1332,7 +1332,7 @@ const manifest &workbook::manifest() const
|
||||||
return d_->manifest_;
|
return d_->manifest_;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::unordered_map<std::size_t, rich_text> &workbook::shared_strings_by_id() const
|
const std::map<std::size_t, rich_text> &workbook::shared_strings_by_id() const
|
||||||
{
|
{
|
||||||
return d_->shared_strings_values_;
|
return d_->shared_strings_values_;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user