diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-10-29 16:45:19 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-10-29 16:45:19 +0000 |
| commit | 9597e224068505196d6802f05edc6d182a69cd4b (patch) | |
| tree | 36fde9e2a7ce9a8bb903ee2c3fb7e73dd4a744fe /src/plugins/Ui/skinned | |
| parent | d6d77d7629e743b0de89c5f5afbaec6e3e16b7fa (diff) | |
| download | qmmp-9597e224068505196d6802f05edc6d182a69cd4b.tar.gz qmmp-9597e224068505196d6802f05edc6d182a69cd4b.tar.bz2 qmmp-9597e224068505196d6802f05edc6d182a69cd4b.zip | |
some optimizations
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6815 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned')
| -rw-r--r-- | src/plugins/Ui/skinned/windowsystem.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/Ui/skinned/windowsystem.cpp b/src/plugins/Ui/skinned/windowsystem.cpp index b29548fd6..4fb1aec1e 100644 --- a/src/plugins/Ui/skinned/windowsystem.cpp +++ b/src/plugins/Ui/skinned/windowsystem.cpp @@ -1,7 +1,7 @@ /*************************************************************************** * Based on Licq * * Copyright (C) 2006-2009 Licq developers * - * Copyright (C) 2011-2015 Ilya Kotov * + * Copyright (C) 2011-2016 Ilya Kotov * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -65,16 +65,13 @@ QString WindowSystem::netWindowManagerName() Display* dsp = QX11Info::display(); WId root = DefaultRootWindow(dsp); - unsigned char* retValue1 = NULL; - unsigned char* retValue2 = NULL; - - retValue1 = getWindowProperty(root, "_NET_SUPPORTING_WM_CHECK"); + unsigned char* retValue1 = getWindowProperty(root, "_NET_SUPPORTING_WM_CHECK"); if (retValue1 == NULL) return QString(); WId win = *(reinterpret_cast<unsigned long*>(retValue1)); - retValue2 = getWindowProperty(win, "_NET_SUPPORTING_WM_CHECK"); + unsigned char* retValue2 = getWindowProperty(win, "_NET_SUPPORTING_WM_CHECK"); if (retValue2 == NULL) { XFree(retValue1); |
