diff --git a/source/cell/rich_text.cpp b/source/cell/rich_text.cpp index d7c0d9d7..1e0d666c 100644 --- a/source/cell/rich_text.cpp +++ b/source/cell/rich_text.cpp @@ -29,12 +29,12 @@ namespace xlnt { rich_text::rich_text(const std::string &plain_text) - : rich_text({plain_text, optional()}) + : rich_text(rich_text_run{plain_text, optional(), false}) { } rich_text::rich_text(const std::string &plain_text, const class font &text_font) - : rich_text({plain_text, optional(text_font)}) + : rich_text({plain_text, optional(text_font), false}) { } diff --git a/source/detail/serialization/xlsx_producer.cpp b/source/detail/serialization/xlsx_producer.cpp index 0717d408..06d46292 100644 --- a/source/detail/serialization/xlsx_producer.cpp +++ b/source/detail/serialization/xlsx_producer.cpp @@ -45,14 +45,6 @@ namespace { -/// -/// Returns true if d is exactly equal to an integer. -/// -bool is_integral(double d) -{ - return std::fabs(d - static_cast(static_cast(d))) == 0.0; -} - std::vector> core_property_namespace(xlnt::core_property type) { using xlnt::core_property;