summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorKohei Yoshida <kohei@libreoffice.org>2023-10-24 18:31:52 -0400
committerKohei Yoshida <kohei@libreoffice.org>2023-10-25 01:33:12 +0200
commitb5d194d1d37131f921853b78d659c63178de2bc6 (patch)
treebe18b4bf04e5c06e40081e237737ee71c3be5c4e /external
parent3d58f3c0c22a972097956f781c51c2822e6d524f (diff)
Upgrade liborcus to 0.19.1
Change-Id: I2190419e88323bbf000602a7762e850a33b5dfdf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158409 Tested-by: Jenkins Reviewed-by: Kohei Yoshida <kohei@libreoffice.org>
Diffstat (limited to 'external')
-rw-r--r--external/liborcus/UnpackedTarball_liborcus.mk2
-rw-r--r--external/liborcus/gnumeric-set-grammar.patch.117
-rw-r--r--external/liborcus/msvc-int-narrowing.patch.150
3 files changed, 0 insertions, 69 deletions
diff --git a/external/liborcus/UnpackedTarball_liborcus.mk b/external/liborcus/UnpackedTarball_liborcus.mk
index 292435dfd00d..5968c7bb1845 100644
--- a/external/liborcus/UnpackedTarball_liborcus.mk
+++ b/external/liborcus/UnpackedTarball_liborcus.mk
@@ -20,8 +20,6 @@ $(eval $(call gb_UnpackedTarball_add_patches,liborcus,\
external/liborcus/gcc9.patch.0 \
external/liborcus/libtool.patch.0 \
external/liborcus/liborcus_newline.patch.1 \
- external/liborcus/msvc-int-narrowing.patch.1 \
- external/liborcus/gnumeric-set-grammar.patch.1 \
))
ifeq ($(OS),WNT)
diff --git a/external/liborcus/gnumeric-set-grammar.patch.1 b/external/liborcus/gnumeric-set-grammar.patch.1
deleted file mode 100644
index 42bc46177737..000000000000
--- a/external/liborcus/gnumeric-set-grammar.patch.1
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/src/liborcus/orcus_gnumeric.cpp b/src/liborcus/orcus_gnumeric.cpp
-index 76c13682..849759ba 100644
---- a/src/liborcus/orcus_gnumeric.cpp
-+++ b/src/liborcus/orcus_gnumeric.cpp
-@@ -144,6 +144,12 @@ void orcus_gnumeric::read_stream(std::string_view stream)
- if (!decompress_gzip(stream.data(), stream.size(), file_content))
- return;
-
-+ if (auto* gs = mp_impl->mp_factory->get_global_settings(); gs)
-+ {
-+ gs->set_origin_date(1899, 12, 30);
-+ gs->set_default_formula_grammar(spreadsheet::formula_grammar_t::gnumeric);
-+ }
-+
- mp_impl->read_content_xml(file_content, get_config());
- mp_impl->mp_factory->finalize();
- }
diff --git a/external/liborcus/msvc-int-narrowing.patch.1 b/external/liborcus/msvc-int-narrowing.patch.1
deleted file mode 100644
index 1075cebfdef3..000000000000
--- a/external/liborcus/msvc-int-narrowing.patch.1
+++ /dev/null
@@ -1,50 +0,0 @@
-Fix
-
- error C2398: Element '2': conversion from 'int' to 'const std::basic_string_view<char,std::char_traits<char>>::size_type'
- requires a narrowing conversion
-
-diff --git a/src/liborcus/gnumeric_value_format_parser.cpp b/src/liborcus/gnumeric_value_format_parser.cpp
-index 822c1ba1..014068e9 100644
---- a/src/liborcus/gnumeric_value_format_parser.cpp
-+++ b/src/liborcus/gnumeric_value_format_parser.cpp
-@@ -12,6 +12,10 @@
- #include <cassert>
- #include <sstream>
-
-+#include <boost/numeric/conversion/cast.hpp>
-+
-+using boost::numeric_cast;
-+
- namespace orcus {
-
- std::size_t gnumeric_value_format_parser::get_pos() const
-@@ -41,7 +45,8 @@ void gnumeric_value_format_parser::segment()
- if (pos != 2)
- throw parse_error("value format segment is not formatted properly", get_pos());
-
-- std::string_view s{p0, std::distance(p0, m_cur)};
-+ auto n = std::distance(p0, m_cur);
-+ std::string_view s{p0, numeric_cast<std::size_t>(n)};
- if (s.empty())
- throw parse_error("segment value is empty", get_pos());
-
-@@ -51,7 +56,8 @@ void gnumeric_value_format_parser::segment()
- }
- case '=':
- {
-- std::string_view s{p0, std::distance(p0, m_cur)};
-+ auto n = std::distance(p0, m_cur);
-+ std::string_view s{p0, numeric_cast<std::size_t>(n)};
- seg.type = to_gnumeric_value_format_type(s);
- if (seg.type == gnumeric_value_format_type::unknown)
- {
-@@ -65,7 +71,8 @@ void gnumeric_value_format_parser::segment()
- }
- case ':':
- {
-- std::string_view s{p0, std::distance(p0, m_cur)};
-+ auto n = std::distance(p0, m_cur);
-+ std::string_view s{p0, numeric_cast<std::size_t>(n)};
-
- switch (pos)
- {