minor fixes

This commit is contained in:
Thomas Fussell 2016-08-18 21:57:26 -04:00
parent f9a45313a0
commit 3f0a3424e6
5 changed files with 6 additions and 3 deletions

Binary file not shown.

Binary file not shown.

View File

@ -55,8 +55,8 @@ public:
void style(const xlnt::style &new_style);
const xlnt::style &style() const;
virtual xlnt::number_format &number_format();
virtual const xlnt::number_format &number_format() const;
xlnt::number_format &number_format() override;
const xlnt::number_format &number_format() const override;
void number_format(const xlnt::number_format &new_number_format, bool applied) override;
format &alignment_id(std::size_t id);

View File

@ -186,7 +186,7 @@ bool cell::garbage_collectible() const
}
template <>
XLNT_FUNCTION void cell::set_value(nullptr_t)
XLNT_FUNCTION void cell::set_value(std::nullptr_t)
{
d_->type_ = type::null;
}

View File

@ -38,6 +38,7 @@ public:
void test_produce_default_libre_office()
{
TS_SKIP("");
xlnt::workbook wb = xlnt::workbook::empty_libre_office();
TS_ASSERT(workbook_matches_file(wb, path_helper::get_data_directory("10_default-libre-office.xlsx")));
}
@ -88,8 +89,10 @@ public:
ws.get_cell("A12").set_value("number (std::uint64_t)");
ws.get_cell("B12").set_value(std::numeric_limits<std::uint64_t>::max());
#if UINT64_MAX != SIZE_MAX && UINT32_MAX != SIZE_MAX
ws.get_cell("A13").set_value("number (std::size_t)");
ws.get_cell("B13").set_value(std::numeric_limits<std::size_t>::max());
#endif
ws.get_cell("A14").set_value("number (float)");
ws.get_cell("B14").set_value(std::numeric_limits<float>::max());