Skip to content

Commit

Permalink
Remove stray field
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeder committed Jan 24, 2015
1 parent f9ff72d commit 0970a10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion include/yaml-cpp/node/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ class YAML_CPP_API Node {
bool m_isValid;
mutable detail::shared_memory_holder m_pMemory;
mutable detail::node* m_pNode;
mutable const detail::node* m_pConstNode;
};

YAML_CPP_API bool operator==(const Node& lhs, const Node& rhs);
Expand Down
6 changes: 3 additions & 3 deletions util/sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ class NullEventHandler : public YAML::EventHandler {
};

int main() {
const YAML::Node node;
YAML::Node root;

std::string key = "doesnotexist";
for (;;) {
node[key];
YAML::Node node;
root = node;
}
return 0;
}

0 comments on commit 0970a10

Please sign in to comment.