From 4ff68319b040c119329e57e65b6bca11829e2497 Mon Sep 17 00:00:00 2001 From: Crzyrndm Date: Mon, 25 Jun 2018 21:45:40 +1200 Subject: [PATCH] Fix CI build warnings --- source/cell/rich_text.cpp | 4 ++-- source/detail/serialization/xlsx_producer.cpp | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) 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;