Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
0b5e8f85
Unverified
Commit
0b5e8f85
authored
Aug 23, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔨
cleanup
Fixed some warning in Clion.
parent
9fd031b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
src/json.hpp
src/json.hpp
+9
-11
No files found.
src/json.hpp
View file @
0b5e8f85
...
...
@@ -1665,7 +1665,7 @@ class lexer
}
explicit
lexer
(
detail
::
input_adapter_t
adapter
)
:
ia
(
adapter
),
decimal_point_char
(
get_decimal_point
())
{}
:
ia
(
std
::
move
(
adapter
)
),
decimal_point_char
(
get_decimal_point
())
{}
// delete because of pointer members
lexer
(
const
lexer
&
)
=
delete
;
...
...
@@ -4439,7 +4439,7 @@ class binary_reader
@param[in] adapter input adapter to read from
*/
explicit
binary_reader
(
input_adapter_t
adapter
)
:
ia
(
adapter
)
explicit
binary_reader
(
input_adapter_t
adapter
)
:
ia
(
std
::
move
(
adapter
)
)
{
assert
(
ia
);
}
...
...
@@ -6035,7 +6035,7 @@ class serializer
@param[in] ichar indentation character to use
*/
serializer
(
output_adapter_t
<
char
>
s
,
const
char
ichar
)
:
o
(
s
),
loc
(
std
::
localeconv
()),
:
o
(
s
td
::
move
(
s
)
),
loc
(
std
::
localeconv
()),
thousands_sep
(
loc
->
thousands_sep
==
nullptr
?
'\0'
:
loc
->
thousands_sep
[
0
]),
decimal_point
(
loc
->
decimal_point
==
nullptr
?
'\0'
:
loc
->
decimal_point
[
0
]),
indent_char
(
ichar
),
indent_string
(
512
,
indent_char
)
{}
...
...
@@ -6557,6 +6557,9 @@ class serializer
+
(
s
[
i
+
3
]
&
0x7F
);
break
;
}
default:
break
;
// LCOV_EXCL_LINE
}
escape_codepoint
(
codepoint
,
result
,
pos
);
...
...
@@ -6764,10 +6767,7 @@ class json_ref
{
return
std
::
move
(
*
value_ref
);
}
else
{
return
*
value_ref
;
}
return
*
value_ref
;
}
value_type
const
&
operator
*
()
const
...
...
@@ -10255,10 +10255,8 @@ class basic_json
return
default_value
;
}
else
{
JSON_THROW
(
type_error
::
create
(
306
,
"cannot use value() with "
+
std
::
string
(
type_name
())));
}
JSON_THROW
(
type_error
::
create
(
306
,
"cannot use value() with "
+
std
::
string
(
type_name
())));
}
/*!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment