From cdc651cf66377eed22198df3c9cd12675a3949eb Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 24 Oct 2011 10:26:17 +1100 Subject: [PATCH] Reduce temporaries in matrix unproject --- matrix.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/matrix.cpp b/matrix.cpp index 9e7bec62..05fbee2c 100644 --- a/matrix.cpp +++ b/matrix.cpp @@ -115,9 +115,7 @@ matrix::to_local (const util::point &p) const { util::point matrix::to_global (const util::point &p) const { - matrix m = *this; - m.invert (); - return m.to_local (p); + return inverse ().to_local (p); }