mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-16 18:34:54 -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())
|
if (xmlStream.isCDATA())
|
||||||
{
|
{
|
||||||
QString depthDataStr = xmlStream.text().toString();
|
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;
|
if (i < static_cast<int>(startingNegValuesXs)) continue;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QString value = depthDataStr.split(' ')[i];
|
QString value = splitted[i];
|
||||||
if ( value != "")
|
if ( value != "")
|
||||||
{
|
{
|
||||||
propertyValuesAtDepth.push_back(value.toDouble());
|
propertyValuesAtDepth.push_back(value.toDouble());
|
||||||
|
Loading…
Reference in New Issue
Block a user