summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2009-11-18 18:08:58 +0100
committerDennis Kasprzyk <onestone@compiz-fusion.org>2009-11-18 18:08:58 +0100
commit1ff147e559dbd367824e03e4f2dcf6b48b1392e7 (patch)
tree2b0392a9074d3564308d99a01c2f4c0686de1ba0 /include
parent574b16d26ab27c52bf90822afc82fa76d6a9c8db (diff)
downloadzcomp-1ff147e559dbd367824e03e4f2dcf6b48b1392e7.tar.gz
zcomp-1ff147e559dbd367824e03e4f2dcf6b48b1392e7.tar.bz2
Avoid unneeded mallocs.
Diffstat (limited to 'include')
-rw-r--r--include/core/wrapsystem.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/core/wrapsystem.h b/include/core/wrapsystem.h
index c71c599..15ffae3 100644
--- a/include/core/wrapsystem.h
+++ b/include/core/wrapsystem.h
@@ -68,13 +68,12 @@
#define WRAPABLE_HND_FUNC_RETURN(num, rtype, func, ...) \
{ \
unsigned int curr = mCurrFunction[num]; \
- rtype rv; \
while (mCurrFunction[num] < mInterface.size () && \
!mInterface[mCurrFunction[num]].enabled[num]) \
mCurrFunction[num]++; \
if (mCurrFunction[num] < mInterface.size ()) \
{ \
- rv = mInterface[mCurrFunction[num]++].obj-> func (__VA_ARGS__); \
+ rtype rv = mInterface[mCurrFunction[num]++].obj-> func (__VA_ARGS__); \
mCurrFunction[num] = curr; \
return rv; \
} \