sc/source/core/opencl/utils.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 2dc0e72f413677ac650fbc21a98f70d5a00ceca6 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Thu Sep 1 13:21:12 2022 +0200 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Thu Sep 1 16:16:33 2022 +0200 improve inheriting from std::num_put These function in the base class are protected, and apparently some GCC versions warn about other overloads being hidden. Change-Id: I9d2e674b4fc9eedc97f586bbe4e4f21a6954b8a7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139161 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/sc/source/core/opencl/utils.cxx b/sc/source/core/opencl/utils.cxx index 8ffec3dc9b7f..0d43d8c3edb2 100644 --- a/sc/source/core/opencl/utils.cxx +++ b/sc/source/core/opencl/utils.cxx @@ -24,7 +24,7 @@ namespace #ifdef SAL_LOG_INFO class outputstream_num_put : public std::num_put<char> { -public: +protected: virtual iter_type do_put(iter_type s, std::ios_base&, char_type, double v) const override { std::string str = preciseFloat(v); @@ -34,6 +34,7 @@ public: { abort(); // we do not use these } + using std::num_put<char>::do_put; }; #endif } // namespace