Commit e340e6b0 authored by Lefebvre, Jordan's avatar Lefebvre, Jordan

Minor clazy/clang-tidy edits.

parent e4e97de8
Pipeline #96047 passed with stages
in 19 minutes and 58 seconds
#include "radixcore/value.hh"
#include <string.h> // strdup, free
#include <cstring> // 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;
......
......@@ -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);
......
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