From c72c36deaa0d4dcf335183b37988dd918f1c25a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 30 Dec 2010 02:05:16 +0100 Subject: [PATCH] Don't create identity matrix when it's fully overwritten anyway. --- src/Math/Matrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Math/Matrix.h b/src/Math/Matrix.h index c74f37e68..2a1a121e5 100644 --- a/src/Math/Matrix.h +++ b/src/Math/Matrix.h @@ -133,7 +133,7 @@ template class Matrix { /** @brief Transposed matrix */ Matrix transposed() const { - Matrix out; + Matrix out(false); for(size_t row = 0; row != size; ++row) { for(size_t col = 0; col != size; ++col)