fix requested items

This commit is contained in:
Dan Dees 2018-09-12 09:25:32 +07:00
parent a4512d5de7
commit dc215eddf6
2 changed files with 4 additions and 4 deletions

View File

@ -81,7 +81,7 @@ class YAML_CPP_API node_data {
shared_memory_holder pMemory); shared_memory_holder pMemory);
public: public:
static std::string& empty_scalar(); static const std::string& empty_scalar();
private: private:
void compute_seq_size() const; void compute_seq_size() const;

View File

@ -13,9 +13,9 @@
namespace YAML { namespace YAML {
namespace detail { namespace detail {
std::string& node_data::empty_scalar(){ const std::string& node_data::empty_scalar() {
static std::string _es; static const std::string svalue;
return _es ; return svalue ;
} }
node_data::node_data() node_data::node_data()