add constructor

This commit is contained in:
Thomas Fussell 2021-01-03 19:04:41 -05:00
parent a8b631bcbb
commit 6987c1f233
2 changed files with 12 additions and 4 deletions

View File

@ -144,9 +144,13 @@ struct workbook_impl
struct file_version_t
{
std::string app_name;
std::size_t last_edited = 0;
std::size_t lowest_edited = 0;
std::size_t rup_build = 0;
std::size_t last_edited;
std::size_t lowest_edited;
std::size_t rup_build;
file_version_t(): last_edited(0), lowest_edited(0), rup_build(0) {
}
bool operator==(const file_version_t& rhs) const
{

View File

@ -414,7 +414,11 @@ workbook workbook::empty()
wb.extended_property(xlnt::extended_property::hyperlinks_changed, false);
wb.extended_property(xlnt::extended_property::app_version, "15.0300");
auto file_version = detail::workbook_impl::file_version_t{"xl", 6, 6, 26709};
detail::workbook_impl::file_version_t file_version;
file_version.app_name = "xl";
file_version.last_edited = 6;
file_version.lowest_edited = 6;
file_version.rup_build = 26709;
wb.d_->file_version_ = file_version;
xlnt::workbook_view wb_view;