Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 704948
Collapse All | Expand All

(-)a/include/yaml-cpp/node/detail/node_data.h (-1 / +1 lines)
Lines 81-87 class YAML_CPP_API node_data { Link Here
81
                    shared_memory_holder pMemory);
81
                    shared_memory_holder pMemory);
82
82
83
 public:
83
 public:
84
  static const std::string& empty_scalar();
84
  static std::string empty_scalar;
85
85
86
 private:
86
 private:
87
  void compute_seq_size() const;
87
  void compute_seq_size() const;
(-)a/include/yaml-cpp/node/impl.h (-2 / +2 lines)
Lines 166-178 inline T Node::as(const S& fallback) const { Link Here
166
inline const std::string& Node::Scalar() const {
166
inline const std::string& Node::Scalar() const {
167
  if (!m_isValid)
167
  if (!m_isValid)
168
    throw InvalidNode(m_invalidKey);
168
    throw InvalidNode(m_invalidKey);
169
  return m_pNode ? m_pNode->scalar() : detail::node_data::empty_scalar();
169
  return m_pNode ? m_pNode->scalar() : detail::node_data::empty_scalar;
170
}
170
}
171
171
172
inline const std::string& Node::Tag() const {
172
inline const std::string& Node::Tag() const {
173
  if (!m_isValid)
173
  if (!m_isValid)
174
    throw InvalidNode(m_invalidKey);
174
    throw InvalidNode(m_invalidKey);
175
  return m_pNode ? m_pNode->tag() : detail::node_data::empty_scalar();
175
  return m_pNode ? m_pNode->tag() : detail::node_data::empty_scalar;
176
}
176
}
177
177
178
inline void Node::SetTag(const std::string& tag) {
178
inline void Node::SetTag(const std::string& tag) {
(-)a/src/node_data.cpp (-4 / +1 lines)
Lines 13-22 Link Here
13
namespace YAML {
13
namespace YAML {
14
namespace detail {
14
namespace detail {
15
15
16
const std::string& node_data::empty_scalar() {
16
std::string node_data::empty_scalar;
17
  static const std::string svalue;
18
  return svalue;
19
}
20
17
21
node_data::node_data()
18
node_data::node_data()
22
    : m_isDefined(false),
19
    : m_isDefined(false),

Return to bug 704948