From 85b116eeb2932bdce62ba3137abe6449ada9fa09 Mon Sep 17 00:00:00 2001 From: danielque Date: Thu, 8 Aug 2019 10:41:05 +0200 Subject: [PATCH] remove unneeded creation of temporary string object [ci skip] can be assigned as is --- .../subModels/liggghtsCommandModel/execute/execute.C | 2 +- .../liggghtsCommandModel/writeLiggghts/writeLiggghts.C | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lagrangian/cfdemParticle/subModels/liggghtsCommandModel/execute/execute.C b/src/lagrangian/cfdemParticle/subModels/liggghtsCommandModel/execute/execute.C index 3b8a4c94..5c5096af 100644 --- a/src/lagrangian/cfdemParticle/subModels/liggghtsCommandModel/execute/execute.C +++ b/src/lagrangian/cfdemParticle/subModels/liggghtsCommandModel/execute/execute.C @@ -100,7 +100,7 @@ execute::execute parseCommandList(commandList_, labelList_, scalarList_, command_, propsDict_, timeStamp_); Info << "liggghtsCommand " << command_ << endl; - strCommand_ = string(command_); + strCommand_ = command_; checkTimeMode(propsDict_); diff --git a/src/lagrangian/cfdemParticle/subModels/liggghtsCommandModel/writeLiggghts/writeLiggghts.C b/src/lagrangian/cfdemParticle/subModels/liggghtsCommandModel/writeLiggghts/writeLiggghts.C index 9a061b2b..ebed180d 100644 --- a/src/lagrangian/cfdemParticle/subModels/liggghtsCommandModel/writeLiggghts/writeLiggghts.C +++ b/src/lagrangian/cfdemParticle/subModels/liggghtsCommandModel/writeLiggghts/writeLiggghts.C @@ -109,7 +109,7 @@ writeLiggghts::writeLiggghts command_ += " " + path_ + "/" + writeName_; if (overwrite_) { - strCommand_=string(command_); + strCommand_ = command_; } else {