atoX functions replaced with strtoX implementation.

This commit is contained in:
Roland Jax
2014-04-27 20:40:27 +02:00
parent ec1ce841d0
commit a8c8c3bd1b
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -102,7 +102,7 @@ std::string BaseLoop::decodeMessage(const std::string& data)
Command* command = new Command(index, (*m_commands)[index], busCommand->getResult().c_str());
// return result
result << command->getResult(cmd);
result << command->calcResult(cmd);
delete command;
delete busCommand;
@@ -129,7 +129,7 @@ std::string BaseLoop::decodeMessage(const std::string& data)
Command* command = new Command(index, (*m_commands)[index], cycdata.c_str());
// return result
result << command->getResult(cmd);
result << command->calcResult(cmd);
delete command;
} else {
+1 -1
View File
@@ -95,7 +95,7 @@ int CYCData::findData(const std::string& data) const
return -3;
// preapre string for searching command
std::string search(data.substr(2, 8 + atoi(data.substr(8,2).c_str()) * 2));
std::string search(data.substr(2, 8 + strtol(data.substr(8,2).c_str(), NULL, 16) * 2));
std::size_t index;
mapCI_t i = m_cycDB.begin();