[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [calligra] krita/image: Fix for windows
From: Stuart Dickson <stuartmd () kogmbh ! com>
Date: 2014-09-08 19:44:06
Message-ID: E1XR4r8-0005uW-6e () scm ! kde ! org
[Download RAW message or body]
Git commit e1e985290ef38323026a4360437379db734472f6 by Stuart Dickson.
Committed on 08/09/2014 at 19:41.
Pushed by dickson into branch 'master'.
Fix for windows
Formal parameter of type __declspec(align('32'))
cannot be passed by value, hence pass by reference.
M +1 -1 krita/image/kis_global.h
http://commits.kde.org/calligra/e1e985290ef38323026a4360437379db734472f6
diff --git a/krita/image/kis_global.h b/krita/image/kis_global.h
index 7060919..6c19abd 100644
--- a/krita/image/kis_global.h
+++ b/krita/image/kis_global.h
@@ -116,7 +116,7 @@ inline qreal incrementInDirection(qreal a, qreal inc, qreal direction) {
}
template<typename T>
-inline T pow2(T x) {
+inline T pow2(const T& x) {
return x * x;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic