Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
Kea
Commits
4dfee545
Commit
4dfee545
authored
Jun 07, 2018
by
Tomek Mrugalski
🛰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[5449] Removed explicit throws() in data.h
- dynamic exception specifications are deprecated in C++11
parent
ba30f1b4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
src/lib/cc/data.cc
src/lib/cc/data.cc
+2
-3
src/lib/cc/data.h
src/lib/cc/data.h
+6
-6
No files found.
src/lib/cc/data.cc
View file @
4dfee545
...
...
@@ -608,7 +608,7 @@ Element::nameToType(const std::string& type_name) {
}
ElementPtr
Element
::
fromJSON
(
std
::
istream
&
in
,
bool
preproc
)
throw
(
JSONError
)
{
Element
::
fromJSON
(
std
::
istream
&
in
,
bool
preproc
)
{
int
line
=
1
,
pos
=
1
;
stringstream
filtered
;
...
...
@@ -623,7 +623,6 @@ Element::fromJSON(std::istream& in, bool preproc) throw(JSONError) {
ElementPtr
Element
::
fromJSON
(
std
::
istream
&
in
,
const
std
::
string
&
file_name
,
bool
preproc
)
throw
(
JSONError
)
{
int
line
=
1
,
pos
=
1
;
stringstream
filtered
;
...
...
@@ -635,7 +634,7 @@ Element::fromJSON(std::istream& in, const std::string& file_name, bool preproc)
ElementPtr
Element
::
fromJSON
(
std
::
istream
&
in
,
const
std
::
string
&
file
,
int
&
line
,
int
&
pos
)
throw
(
JSONError
)
int
&
pos
)
{
int
c
=
0
;
ElementPtr
element
;
...
...
src/lib/cc/data.h
View file @
4dfee545
...
...
@@ -425,10 +425,10 @@ public:
/// @param in The string to parse the element from
/// @param preproc specified whether preprocessing (e.g. comment removal)
/// should be performed
/// @throw JSONError
/// @return An ElementPtr that contains the element(s) specified
/// in the given input stream.
static
ElementPtr
fromJSON
(
std
::
istream
&
in
,
bool
preproc
=
false
)
throw
(
JSONError
);
static
ElementPtr
fromJSON
(
std
::
istream
&
in
,
bool
preproc
=
false
);
/// Creates an Element from the given input stream containing JSON
/// formatted data.
...
...
@@ -437,11 +437,11 @@ public:
/// @param file_name specified input file name (used in error reporting)
/// @param preproc specified whether preprocessing (e.g. comment removal)
/// should be performed
/// @throw JSONError
/// @return An ElementPtr that contains the element(s) specified
/// in the given input stream.
static
ElementPtr
fromJSON
(
std
::
istream
&
in
,
const
std
::
string
&
file_name
,
bool
preproc
=
false
)
throw
(
JSONError
);
bool
preproc
=
false
);
/// Creates an Element from the given input stream, where we keep
/// track of the location in the stream for error reporting.
...
...
@@ -452,12 +452,12 @@ public:
/// track of the current line.
/// @param pos A reference to the int where the function keeps
/// track of the current position within the current line.
/// @throw JSONError
/// @return An ElementPtr that contains the element(s) specified
/// in the given input stream.
// make this one private?
static
ElementPtr
fromJSON
(
std
::
istream
&
in
,
const
std
::
string
&
file
,
int
&
line
,
int
&
pos
)
throw
(
JSONError
);
int
&
line
,
int
&
pos
);
/// Reads contents of specified file and interprets it as JSON.
///
...
...
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