mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-13 17:05:59 -06:00
#2453 Stim plan. Removed double string splitting loop
This commit is contained in:
parent
39949923a6
commit
2e0069456f
@ -224,12 +224,13 @@ std::vector<std::vector<double>> RifStimPlanXmlReader::getAllDepthDataAtTimeSte
|
||||
if (xmlStream.isCDATA())
|
||||
{
|
||||
QString depthDataStr = xmlStream.text().toString();
|
||||
for (int i = 0; i < depthDataStr.split(' ').size(); i++)
|
||||
QStringList splitted = depthDataStr.split(' ');
|
||||
for (int i = 0; i < splitted.size(); i++)
|
||||
{
|
||||
if (i < static_cast<int>(startingNegValuesXs)) continue;
|
||||
else
|
||||
{
|
||||
QString value = depthDataStr.split(' ')[i];
|
||||
QString value = splitted[i];
|
||||
if ( value != "")
|
||||
{
|
||||
propertyValuesAtDepth.push_back(value.toDouble());
|
||||
|
Loading…
Reference in New Issue
Block a user