projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
document that GetAttribute's argument must not be NULL
[wxWidgets.git]
/
src
/
xml
/
xml.cpp
diff --git
a/src/xml/xml.cpp
b/src/xml/xml.cpp
index a35d73b26789c65833b0937dd9d6e4859e58ca1f..1f1539556d50901143f8ebbb95fe8a1bb7bf2dbc 100644
(file)
--- a/
src/xml/xml.cpp
+++ b/
src/xml/xml.cpp
@@
-143,6
+143,8
@@
bool wxXmlNode::HasAttribute(const wxString& attrName) const
bool wxXmlNode::GetAttribute(const wxString& attrName, wxString *value) const
{
+ wxCHECK_MSG( value, false, "value argument must not be NULL" );
+
wxXmlAttribute *attr = GetAttributes();
while (attr)