fix requested items
This commit is contained in:
parent
a4512d5de7
commit
dc215eddf6
@ -81,7 +81,7 @@ class YAML_CPP_API node_data {
|
||||
shared_memory_holder pMemory);
|
||||
|
||||
public:
|
||||
static std::string& empty_scalar();
|
||||
static const std::string& empty_scalar();
|
||||
|
||||
private:
|
||||
void compute_seq_size() const;
|
||||
|
||||
@ -13,9 +13,9 @@
|
||||
namespace YAML {
|
||||
namespace detail {
|
||||
|
||||
std::string& node_data::empty_scalar(){
|
||||
static std::string _es;
|
||||
return _es ;
|
||||
const std::string& node_data::empty_scalar() {
|
||||
static const std::string svalue;
|
||||
return svalue ;
|
||||
}
|
||||
|
||||
node_data::node_data()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user