summaryrefslogtreecommitdiff
path: root/src
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 /src
parent574b16d26ab27c52bf90822afc82fa76d6a9c8db (diff)
downloadzcomp-1ff147e559dbd367824e03e4f2dcf6b48b1392e7.tar.gz
zcomp-1ff147e559dbd367824e03e4f2dcf6b48b1392e7.tar.bz2
Avoid unneeded mallocs.
Diffstat (limited to 'src')
-rw-r--r--src/event.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/event.cpp b/src/event.cpp
index 055a949..86b0955 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -615,7 +615,8 @@ PrivateScreen::triggerEdgeEnter (unsigned int edge,
bool
PrivateScreen::handleActionEvent (XEvent *event)
{
- CompOption::Vector o (0);
+ CompOption::Vector o;
+ o.reserve (8);
o.push_back (CompOption ("event_window", CompOption::TypeInt));
o.push_back (CompOption ("window", CompOption::TypeInt));