resolve warnings

This commit is contained in:
JCrawfy 2020-03-02 13:32:39 +13:00
parent e8cb8d9bc6
commit f4d00acb9f
3 changed files with 1 additions and 13 deletions

View File

@ -141,7 +141,7 @@ public:
{ {
convert_comma_to_pt(buf, len); convert_comma_to_pt(buf, len);
} }
return std::string(buf, len); return std::string(buf, static_cast<size_t>(len));
} }
double deserialise(std::string &s) const noexcept double deserialise(std::string &s) const noexcept

View File

@ -149,11 +149,6 @@ public:
/// </summary> /// </summary>
bool operator!=(const char *reference_string) const; bool operator!=(const char *reference_string) const;
/// <summary>
/// Assigns the extents of the provided range to this range.
/// </summary>
range_reference &operator=(const range_reference &ref);
private: private:
/// <summary> /// <summary>
/// The top left cell in the range /// The top left cell in the range

View File

@ -177,11 +177,4 @@ XLNT_API bool operator!=(const char *reference_string, const range_reference &re
return ref != reference_string; return ref != reference_string;
} }
range_reference &range_reference::operator=(const range_reference &ref)
{
top_left_ = ref.top_left_;
bottom_right_ = ref.bottom_right_;
return *this;
}
} // namespace xlnt } // namespace xlnt