From 71498641733087e96a72b2df3840288a2ec10b9a Mon Sep 17 00:00:00 2001 From: drewcassidy Date: Wed, 7 Apr 2021 23:39:50 -0700 Subject: [PATCH] tweaks --- quicktex/_bindings.h | 4 ++-- quicktex/s3tc/bc4/BC4Encoder.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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 {