Commit 3ff3e14c authored by claes's avatar claes

string = changed to .assign

parent 45391bdd
/*
* Proview $Id: opc_utl.cpp,v 1.20 2007-06-01 12:52:40 claes Exp $
* Proview $Id: opc_utl.cpp,v 1.21 2007-12-03 13:32:04 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
......@@ -279,7 +279,7 @@ xsd__anyType* opc_opctype_to_value( struct soap *soap, void *bufp, int size,
switch (opc_type) {
case opc_eDataType_string: {
xsd__string *val = soap_new_xsd__string( soap, -1);
val->__item = std::string( (char *)bufp);
val->__item.assign( (char *)bufp);
return val;
break;
}
......@@ -361,7 +361,7 @@ xsd__anyType* opc_opctype_to_value( struct soap *soap, void *bufp, int size,
char timstr[40];
time_AtoOPCAscii( (pwr_tTime *)bufp, timstr, sizeof(timstr));
val->__item = std::string( timstr);
val->__item.assign( timstr);
return val;
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment