Commit 82ca4bdf authored by Jozsef Makai's avatar Jozsef Makai

MGM: why am i using pointer

parent 400450ef
......@@ -2331,12 +2331,12 @@ WFE::MoveFromRBackToQ() {
auto wfEntry = wfedir.first;
for (const auto& entry : wfedir.second) {
wfEntry += entry;
std::unique_ptr<Job> jobPtr = new Job();
jobPtr->Load(wfEntry);
if (!jobPtr->IsSync()) {
jobPtr->Move("r", "q", jobPtr->mActions[0].mTime);
Job job;
job.Load(wfEntry);
if (!job.IsSync()) {
job.Move("r", "q", job.mActions[0].mTime);
} else {
jobPtr->Delete("r", jobPtr->mActions[0].mSavedOnDay);
job.Delete("r", job.mActions[0].mSavedOnDay);
}
}
}
......
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