Project

Profile

Help

Revision 1117bc69

Added by O'Neil Delpratt almost 2 years ago

Saxon/C Development - Multithreading feature

View differences:

latest9.9/hec/Saxon.C.API/XPathProcessor.cpp
374 374
void XPathProcessor::setParameter(const char * name, XdmValue* value) {
375 375
	if(value != NULL){
376 376
		value->incrementRefCount();
377
		int s = parameter.size();
378
		std::String skey = "param:"+std::string(name);
377
		int s = parameters.size();
378
		std::string skey = "param:"+std::string(name);
379 379
		parameters[skey] = value;
380
		if(s == parameter.size()) {
380
		if(s == parameters.size()) {
381 381
            std::map<std::string, XdmValue*>::iterator it;
382 382
            it = parameters.find(skey);
383 383
            if (it != parameters.end()) {
......
400 400
void XPathProcessor::setProperty(const char * name, const char * value) {
401 401
	if(name != NULL) {
402 402
	    int s = properties.size();
403
		std:string skey = std::string(name);
403
		std::string skey = std::string(name);
404 404
		properties.insert(std::pair<std::string, std::string>(skey, std::string((value == NULL ? "" : value))));
405 405

  
406 406
		if(s == properties.size()) {

Also available in: Unified diff