From d4153003166ea6d15464306e414f240b82b6e7e6 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Thu, 4 May 2017 23:03:10 -0400 Subject: [PATCH] Move one-line implementation of UniValue::read() to header. --- include/univalue.h | 3 ++- lib/univalue_read.cpp | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/univalue.h b/include/univalue.h index cc92cd2a9c551d..f10f78d432864c 100644 --- a/include/univalue.h +++ b/include/univalue.h @@ -7,6 +7,7 @@ #define __UNIVALUE_H__ #include +#include #include #include @@ -137,7 +138,7 @@ class UniValue { unsigned int indentLevel = 0) const; bool read(const char *raw, size_t len); - bool read(const char *raw); + bool read(const char *raw) { return read(raw, strlen(raw)); } bool read(const std::string& rawStr) { return read(rawStr.data(), rawStr.size()); } diff --git a/lib/univalue_read.cpp b/lib/univalue_read.cpp index 2bd83238b48602..ae75cb462a0188 100644 --- a/lib/univalue_read.cpp +++ b/lib/univalue_read.cpp @@ -449,6 +449,3 @@ bool UniValue::read(const char *raw, size_t size) return true; } -bool UniValue::read(const char *raw) { - return read(raw, strlen(raw)); -}