delete copy constructors and assignment operators explicitly

This commit is contained in:
Garux
2021-03-24 15:48:29 +03:00
parent 6aa8e432f7
commit dc5dea6d21
10 changed files with 39 additions and 37 deletions

View File

@@ -453,9 +453,6 @@ class PicoModelInstance :
};
typedef Array<Remap> SurfaceRemaps;
SurfaceRemaps m_skins;
PicoModelInstance( const PicoModelInstance& );
PicoModelInstance operator=( const PicoModelInstance& );
public:
typedef LazyStatic<TypeCasts> StaticTypeCasts;
@@ -508,6 +505,9 @@ public:
constructRemaps();
}
PicoModelInstance( const PicoModelInstance& ) = delete; // not copyable
PicoModelInstance operator=( const PicoModelInstance& ) = delete; // not assignable
PicoModelInstance( const scene::Path& path, scene::Instance* parent, PicoModel& picomodel ) :
Instance( path, parent, this, StaticTypeCasts::instance().get() ),
m_picomodel( picomodel ),