diff --git a/include/xlnt/utils/numeric.hpp b/include/xlnt/utils/numeric.hpp index 7ccb69ae..cbf03094 100644 --- a/include/xlnt/utils/numeric.hpp +++ b/include/xlnt/utils/numeric.hpp @@ -141,7 +141,7 @@ public: { convert_comma_to_pt(buf, len); } - return std::string(buf, len); + return std::string(buf, static_cast(len)); } double deserialise(std::string &s) const noexcept diff --git a/include/xlnt/worksheet/range_reference.hpp b/include/xlnt/worksheet/range_reference.hpp index 9e12638d..907854a8 100644 --- a/include/xlnt/worksheet/range_reference.hpp +++ b/include/xlnt/worksheet/range_reference.hpp @@ -149,11 +149,6 @@ public: /// bool operator!=(const char *reference_string) const; - /// - /// Assigns the extents of the provided range to this range. - /// - range_reference &operator=(const range_reference &ref); - private: /// /// The top left cell in the range diff --git a/source/worksheet/range_reference.cpp b/source/worksheet/range_reference.cpp index 54033b64..490cac55 100644 --- a/source/worksheet/range_reference.cpp +++ b/source/worksheet/range_reference.cpp @@ -177,11 +177,4 @@ XLNT_API bool operator!=(const char *reference_string, const range_reference &re 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