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;
return m_data.m_int ? true : false;
return m_data.m_int != 0;
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);
// 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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment