Commit 45714e4f authored by Maxime Calka's avatar Maxime Calka

Suppress useless pointer and add missing this

parent 5bde59a7
......@@ -59,7 +59,6 @@ void GeneratingCEPState::onEntry(QEvent* event) {
QString cepName = domCep->name().c_str();
std::cout << "cepName: " << cepName.toStdString() << std::endl;
cepcoreschema::Cep aCep(*domCep);
std::unique_ptr<cepcoreschema::Cep> domCepPtr(domCep);
CepGenerator* cepGenerator = new CepGenerator(std::move(domCepPtr), (*directoryName));
......
......@@ -71,7 +71,7 @@ CepGenerator::CepGenerator(QString xmlFilename, QString devDirectoryName) {
CepGenerator::CepGenerator(std::unique_ptr< cepcoreschema::Cep > domCep, QString devDirectoryName) {
initMyResource();
domCep = std::move(domCep);
this->domCep = std::move(domCep);
setDevDirectoryName(devDirectoryName);
}
......
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