Cleanup: fix compiler warnings.
[blender.git] / intern / cycles / bvh / bvh4.h
index 1e1e8565ea1461e677378cfae2110bad76022da4..caa0e2c818258df3c639ffed4b5128bf83ac6cb8 100644 (file)
@@ -48,8 +48,11 @@ protected:
        friend class BVH;
        BVH4(const BVHParams& params, const vector<Object*>& objects);
 
+       /* Building process. */
+       virtual BVHNode *widen_children_nodes(const BVHNode *root) override;
+
        /* pack */
-       void pack_nodes(const BVHNode *root);
+       void pack_nodes(const BVHNode *root) override;
 
        void pack_leaf(const BVHStackEntry& e, const LeafNode *leaf);
        void pack_inner(const BVHStackEntry& e, const BVHStackEntry *en, int num);
@@ -78,11 +81,10 @@ protected:
                                 const int num);
 
        /* refit */
-       void refit_nodes();
+       void refit_nodes() override;
        void refit_node(int idx, bool leaf, BoundBox& bbox, uint& visibility);
 };
 
 CCL_NAMESPACE_END
 
-#endif /* __BVH_H__ */
-
+#endif  /* __BVH4_H__ */