Fix CI build warnings

This commit is contained in:
Crzyrndm 2018-06-25 21:45:40 +12:00
parent 8ba7f5b45d
commit 4ff68319b0
2 changed files with 2 additions and 10 deletions

View File

@ -29,12 +29,12 @@
namespace xlnt { namespace xlnt {
rich_text::rich_text(const std::string &plain_text) rich_text::rich_text(const std::string &plain_text)
: rich_text({plain_text, optional<font>()}) : rich_text(rich_text_run{plain_text, optional<font>(), false})
{ {
} }
rich_text::rich_text(const std::string &plain_text, const class font &text_font) rich_text::rich_text(const std::string &plain_text, const class font &text_font)
: rich_text({plain_text, optional<font>(text_font)}) : rich_text({plain_text, optional<font>(text_font), false})
{ {
} }

View File

@ -45,14 +45,6 @@
namespace { namespace {
/// <summary>
/// Returns true if d is exactly equal to an integer.
/// </summary>
bool is_integral(double d)
{
return std::fabs(d - static_cast<double>(static_cast<long long int>(d))) == 0.0;
}
std::vector<std::pair<std::string, std::string>> core_property_namespace(xlnt::core_property type) std::vector<std::pair<std::string, std::string>> core_property_namespace(xlnt::core_property type)
{ {
using xlnt::core_property; using xlnt::core_property;