Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
rstudio
0008-Add-support-for-RapidJSON-1.1.0-in-Leap-15...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0008-Add-support-for-RapidJSON-1.1.0-in-Leap-15.2.patch of Package rstudio
From 31a42867cabd2680fb3a198d25a1d1d81d046459 Mon Sep 17 00:00:00 2001 From: Adam Majer <adam.majer@suse.de> Date: Thu, 10 Sep 2020 14:56:17 +0200 Subject: [PATCH 8/8] Add support for RapidJSON 1.1.0 in Leap 15.2 --- src/cpp/shared_core/json/Json.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/shared_core/json/Json.cpp b/src/cpp/shared_core/json/Json.cpp index a7a3521e4f..9ad01ce8dc 100644 --- a/src/cpp/shared_core/json/Json.cpp +++ b/src/cpp/shared_core/json/Json.cpp @@ -795,7 +795,7 @@ std::string Value::write() const rapidjson::Writer<rapidjson::StringBuffer> writer(buffer); m_impl->Document->Accept(writer); - return std::string(buffer.GetString(), buffer.GetLength()); + return std::string(buffer.GetString(), buffer.GetSize() / sizeof(rapidjson::StringBuffer::Ch)); } void Value::write(std::ostream& os) const @@ -809,7 +809,7 @@ std::string Value::writeFormatted() const rapidjson::PrettyWriter<rapidjson::StringBuffer> writer(buffer); m_impl->Document->Accept(writer); - return std::string(buffer.GetString(), buffer.GetLength()); + return std::string(buffer.GetString(), buffer.GetSize() / sizeof(rapidjson::StringBuffer::Ch)); } void Value::writeFormatted(std::ostream& os) const -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor