[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 899a163 3/9: Improve documentation
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 899a163 3/9: Improve documentation |
Date: |
Thu, 12 Jul 2018 13:12:57 -0400 (EDT) |
branch: master
commit 899a16378e217a8e3825451f77d002ce821c703c
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Improve documentation
---
single_cell_document.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/single_cell_document.cpp b/single_cell_document.cpp
index 03ac44c..b34d426 100644
--- a/single_cell_document.cpp
+++ b/single_cell_document.cpp
@@ -116,7 +116,13 @@ void single_cell_document::parse(xml_lmi::dom_parser
const& parser)
xml::const_nodes_view const elements(root.elements());
// An '.ill' document's root contains only one child element.
LMI_ASSERT(1 == elements.size());
- // "*elements.begin()" because there is no front():
+ // "*elements.begin()" because there is no front(). A 2017-01-26
+ // discussion off the mailing list explained why:
+ // 'The nodes returned by nodes_view::iterator are actually
+ // temporary objects as the only "real" nodes we have are
+ // xmlNodes in the tree maintained by libxml2 itself. So
+ // returning "*begin()" from front() actually results in a
+ // dangling reference'.
*elements.begin() >> input_data_;
}
- [lmi-commits] [lmi] master updated (f5c7c0b -> 34bd9e1), Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 8c11196 1/9: Work around a compiler warning, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 899a163 3/9: Improve documentation,
Greg Chicares <=
- [lmi-commits] [lmi] master 8a68504 4/9: Call Reconcile() when reading all external input files, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master c28ef2c 5/9: Demonstrate substitutability of alert streams, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 34bd9e1 9/9: Designate release candidate 20180712T1708Z, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master ed63bee 2/9: Enable GUI test to preserve 'configurable_settings.xml', Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 2a0823a 8/9: Throw an exception if schema validation fails, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master d28f769 7/9: Improve certain error messages, Greg Chicares, 2018/07/12
- [lmi-commits] [lmi] master 7aaa73e 6/9: Validate external input more stringently, Greg Chicares, 2018/07/12