[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kde-workspace/frameworks-scratch] kwin: create a variable and not a function declaration
From:       Alex Richardson <arichardson.kde () googlemail ! com>
Date:       2013-09-13 14:54:07
Message-ID: E1VKUl5-00077x-Cg () scm ! kde ! org
[Download RAW message or body]

Git commit 4369a746d5a6b2386cecce1a3e1104954e7c5754 by Alex Richardson.
Committed on 13/09/2013 at 14:51.
Pushed by arichardson into branch 'frameworks-scratch'.

create a variable and not a function declaration

found with the clang -Wvexing-parse warning

M  +1    -1    kwin/scene.cpp

http://commits.kde.org/kde-workspace/4369a746d5a6b2386cecce1a3e1104954e7c5754

diff --git a/kwin/scene.cpp b/kwin/scene.cpp
index b343829..a39e5a3 100644
--- a/kwin/scene.cpp
+++ b/kwin/scene.cpp
@@ -806,7 +806,7 @@ void WindowPixmap::create()
     if (isValid()) {
         return;
     }
-    XServerGrabber grabber();
+    XServerGrabber grabber;
     xcb_pixmap_t pix = xcb_generate_id(connection());
     xcb_void_cookie_t namePixmapCookie = \
xcb_composite_name_window_pixmap_checked(connection(), toplevel()->frameId(), pix);  \
Xcb::WindowAttributes windowAttributes(toplevel()->frameId());


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic