Skip to content

Commit edbd89b

Browse files
committed
Update vendor
1 parent 6dc582f commit edbd89b

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

tests/vendor/cget/pkg/pqrs-org__cpp-json/install/include/pqrs/json.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
// pqrs::json v1.5
3+
// pqrs::json v1.6
44

55
// (C) Copyright Takayama Fumihiko 2019.
66
// Distributed under the Boost Software License, Version 1.0.

tests/vendor/cget/pkg/pqrs-org__cpp-json/install/include/pqrs/json/pqrs_formatter.hpp

+13-13
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ struct options {
6868
namespace impl {
6969

7070
template <typename T>
71-
bool multi_line(const T& json,
72-
const options& options,
73-
std::optional<std::string> parent_object_key) {
71+
inline bool multi_line(const T& json,
72+
const options& options,
73+
std::optional<std::string> parent_object_key) {
7474
if (json.is_object()) {
7575
if (json.size() == 0) {
7676
return false;
@@ -113,20 +113,20 @@ bool multi_line(const T& json,
113113
return false;
114114
}
115115

116-
void indent(std::ostringstream& ss,
117-
const options& options,
118-
int indent_level) {
116+
inline void indent(std::ostringstream& ss,
117+
const options& options,
118+
int indent_level) {
119119
for (int i = 0; i < options.indent_size * indent_level; ++i) {
120120
ss << ' ';
121121
}
122122
}
123123

124124
template <typename T>
125-
void format(std::ostringstream& ss,
126-
const T& json,
127-
const options& options,
128-
std::optional<std::string> parent_object_key,
129-
int indent_level) {
125+
inline void format(std::ostringstream& ss,
126+
const T& json,
127+
const options& options,
128+
std::optional<std::string> parent_object_key,
129+
int indent_level) {
130130
if (json.is_object()) {
131131
if (!multi_line(json, options, parent_object_key)) {
132132
//
@@ -250,8 +250,8 @@ void format(std::ostringstream& ss,
250250
} // namespace impl
251251

252252
template <typename T>
253-
std::string format(const T& json,
254-
const options& options) {
253+
inline std::string format(const T& json,
254+
const options& options) {
255255
std::ostringstream ss;
256256
impl::format(ss, json, options, std::nullopt, 0);
257257
return ss.str();

0 commit comments

Comments
 (0)