Switch to unified view

a/libupnpp/soaphelp.cxx b/libupnpp/soaphelp.cxx
...
...
89
    if (nl)
89
    if (nl)
90
        ixmlNodeList_free(nl);
90
        ixmlNodeList_free(nl);
91
    return ret;
91
    return ret;
92
}
92
}
93
93
94
bool SoapArgs::getBool(const char *nm, bool *value) const
95
{
96
    map<string, string>::const_iterator it = args.find(nm);
97
    if (it == args.end() || it->second.empty()) {
98
        return false;
99
    }
100
    if (it->second[0] == 'F' || it->second[0] == '0') {
101
        *value = false;
102
    } else if (it->second[0] == 'T' || it->second[0] == '1') {
103
        *value = true;
104
    } else {
105
        return false;
106
    }
107
    return true;
108
}
109
110
bool SoapArgs::getInt(const char *nm, int *value) const
111
{
112
    map<string, string>::const_iterator it = args.find(nm);
113
    if (it == args.end() || it->second.empty()) {
114
        return false;
115
    }
116
    *value = atoi(it->second.c_str());
117
    return true;
118
}
119
120
bool SoapArgs::getString(const char *nm, string *value) const
121
{
122
    map<string, string>::const_iterator it = args.find(nm);
123
    if (it == args.end() || it->second.empty()) {
124
        return false;
125
    }
126
    *value = it->second;
127
    return true;
128
}
94
129
95
IXML_Document *buildSoapBody(SoapData& data)
130
IXML_Document *buildSoapBody(SoapData& data)
96
{
131
{
97
    IXML_Document *doc = ixmlDocument_createDocument();
132
    IXML_Document *doc = ixmlDocument_createDocument();
98
    if (doc == 0) {
133
    if (doc == 0) {