]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/partcache.h
Make sure classes follow the rule of 0/3/5
[libs/gltk.git] / source / partcache.h
index af697339efcfa0ed5e46cb998235e0c156ac13c0..8099676f95d177ecc3855bf00006db2a3aa11263 100644 (file)
@@ -12,10 +12,13 @@ class Part;
 
 struct CachedPart
 {
-       const Part *part = 0;
-       const GL::Texture2D *texture = 0;
-       GL::Mesh *mesh = 0;
+       const Part *part = nullptr;
+       const GL::Texture2D *texture = nullptr;
+       GL::Mesh *mesh = nullptr;
 
+       CachedPart() = default;
+       CachedPart(CachedPart &&);
+       CachedPart &operator=(CachedPart &&);
        ~CachedPart();
 };