Commit e340e6b0 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Minor clazy/clang-tidy edits.

parent e4e97de8
Pipeline #96047 passed with stages
in 19 minutes and 58 seconds
#include "radixcore/value.hh" #include "radixcore/value.hh"
#include <string.h> // strdup, free #include <cstring> // strdup, free
#include <cassert> #include <cassert>
#include <cstdlib> // atoi/atof, etc #include <cstdlib> // atoi/atof, etc
#include <sstream> #include <sstream>
...@@ -320,7 +320,7 @@ bool Value::to_bool() const ...@@ -320,7 +320,7 @@ bool Value::to_bool() const
return m_data.m_bool; return m_data.m_bool;
case TYPE_INTEGER: case TYPE_INTEGER:
return m_data.m_int ? true : false; return m_data.m_int != 0;
case TYPE_DOUBLE: case TYPE_DOUBLE:
return m_data.m_double ? true : false; return m_data.m_double ? true : false;
......
...@@ -60,14 +60,14 @@ class RADIX_PUBLIC Value ...@@ -60,14 +60,14 @@ class RADIX_PUBLIC Value
// string // string
Value(const std::string& v); Value(const std::string& v);
// data array // data array
Value(const DataArray& d); Value(const DataArray& v);
// data object // data object
Value(const DataObject& d); Value(const DataObject& v);
~Value(); ~Value();
// assignment operators // assignment operators
Value& operator=(const Value& v); Value& operator=(const Value& orig);
Value& operator=(Value&& v); Value& operator=(Value&& orig);
Value& operator=(bool v); Value& operator=(bool v);
Value& operator=(int v); Value& operator=(int v);
Value& operator=(double v); Value& operator=(double v);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment