diff --git a/quicktex/_bindings.h b/quicktex/_bindings.h index 74cce49..b191cc8 100644 --- a/quicktex/_bindings.h +++ b/quicktex/_bindings.h @@ -195,7 +195,7 @@ template py::class_ BindBlock(py::module_& m, const char* name) "tobytes", [](const B& b) { return py::bytes(reinterpret_cast(&b), sizeof(B)); }, Format(tobytes_doc, name, std::to_string(sizeof(B))).c_str()); - return block; + return std::move(block); } template py::class_> BindBlockTexture(py::module_& m, const char* name) { @@ -231,6 +231,6 @@ template py::class_> BindBlockTexture(py::module_& DefSubscript2D(block_texture, &BTex::GetBlock, &BTex::SetBlock, &BTex::BlocksXY); - return block_texture; + return std::move(block_texture); } } // namespace quicktex::bindings \ No newline at end of file diff --git a/quicktex/s3tc/bc4/BC4Encoder.cpp b/quicktex/s3tc/bc4/BC4Encoder.cpp index 7ee22e9..a443315 100644 --- a/quicktex/s3tc/bc4/BC4Encoder.cpp +++ b/quicktex/s3tc/bc4/BC4Encoder.cpp @@ -25,7 +25,6 @@ #include "../../Color.h" #include "../../ColorBlock.h" -#include "../../util.h" #include "BC4Block.h" namespace quicktex::s3tc {