Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LEFEBVREJP email
radix
Commits
e340e6b0
Commit
e340e6b0
authored
Apr 03, 2020
by
LEFEBVREJP email
Browse files
Minor clazy/clang-tidy edits.
parent
e4e97de8
Pipeline
#96047
passed with stages
in 19 minutes and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
radixcore/value.cc
View file @
e340e6b0
#include "radixcore/value.hh"
#include <string
.h
> // strdup, free
#include <
c
string> // strdup, free
#include <cassert>
#include <cstdlib> // atoi/atof, etc
#include <sstream>
...
...
@@ -320,7 +320,7 @@ bool Value::to_bool() const
return
m_data
.
m_bool
;
case
TYPE_INTEGER
:
return
m_data
.
m_int
?
true
:
false
;
return
m_data
.
m_int
!=
0
;
case
TYPE_DOUBLE
:
return
m_data
.
m_double
?
true
:
false
;
...
...
radixcore/value.hh
View file @
e340e6b0
...
...
@@ -60,14 +60,14 @@ class RADIX_PUBLIC Value
// string
Value
(
const
std
::
string
&
v
);
// data array
Value
(
const
DataArray
&
d
);
Value
(
const
DataArray
&
v
);
// data object
Value
(
const
DataObject
&
d
);
Value
(
const
DataObject
&
v
);
~
Value
();
// assignment operators
Value
&
operator
=
(
const
Value
&
v
);
Value
&
operator
=
(
Value
&&
v
);
Value
&
operator
=
(
const
Value
&
orig
);
Value
&
operator
=
(
Value
&&
orig
);
Value
&
operator
=
(
bool
v
);
Value
&
operator
=
(
int
v
);
Value
&
operator
=
(
double
v
);
...
...
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