Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
b2f0388d
Commit
b2f0388d
authored
Jun 13, 2013
by
fujiwara
Browse files
[2992] variable definition is moved into inner scope because of cppcheck claim
parent
c16bf9a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/cc/data.cc
View file @
b2f0388d
...
...
@@ -397,13 +397,13 @@ fromStringstreamNumber(std::istream& in, int& pos) {
double
d
=
0.0
;
bool
is_double
=
false
;
char
*
endptr
;
const
char
*
ptr
;
std
::
string
number
=
numberFromStringstream
(
in
,
pos
);
errno
=
0
;
i
=
strtol
(
number
.
c_str
(),
&
endptr
,
10
);
if
(
*
endptr
!=
'\0'
)
{
const
char
*
ptr
;
errno
=
0
;
d
=
strtod
(
ptr
=
number
.
c_str
(),
&
endptr
);
is_double
=
true
;
...
...
Write
Preview
Supports
Markdown
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