Changeset 53 in flair-src for branches/mavlink/lib/FlairCore/src/Widget.cpp
- Timestamp:
- 07/27/16 17:42:27 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mavlink/lib/FlairCore/src/Widget.cpp
r15 r53 19 19 #include "Widget_impl.h" 20 20 21 //to delete, for test purpose 22 #include <iostream> 23 21 24 using std::string; 22 25 … … 82 85 if (GetPersistentXmlProp<double>(prop, tmp)) { 83 86 value = tmp; 87 return true; 88 } else { 89 return false; 90 } 91 } 92 93 template <> 94 bool Widget::GetPersistentXmlProp(std::string prop, std::string &value) { 95 xmlChar *result = NULL; 96 result = xmlGetProp(pimpl_->file_node, (xmlChar *)prop.c_str()); 97 if (result != NULL) { 98 value = std::string((char*)result); 99 xmlFree(result); 84 100 return true; 85 101 } else {
Note:
See TracChangeset
for help on using the changeset viewer.