Skip to content
Snippets Groups Projects
Commit 94d49677 authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Fix warning and error

parent d855bed3
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
#include <vector>
class FormFactorCoherentSum;
class HomogeneousRegion;
struct HomogeneousRegion;
class IFresnelMap;
class IInterferenceFunction;
class ILayout;
......
......@@ -42,7 +42,7 @@ Slice::Slice(Slice&& other)
{
}
Slice &Slice::operator=(const Slice &other)
Slice& Slice::operator=(const Slice& other)
{
m_thickness = other.m_thickness;
m_material = other.m_material;
......@@ -50,6 +50,7 @@ Slice &Slice::operator=(const Slice &other)
if (other.mP_top_roughness) {
mP_top_roughness.reset(other.mP_top_roughness->clone());
}
return *this;
}
Slice::~Slice() = default;
......@@ -94,5 +95,5 @@ void Slice::initBField(kvector_t h_field, double b_z)
void Slice::invertBField()
{
m_B_field = - m_B_field;
m_B_field = -m_B_field;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment