diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-10-29 18:13:00 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2016-10-29 18:13:00 +0000 |
| commit | 640afe96b1b2f53d579b93c46d5d9e760502daa9 (patch) | |
| tree | c00c43335cb9bda182db84c41c4adad66b559ced /src/plugins/Ui/skinned/windowsystem.cpp | |
| parent | c81d3450d252f0de45b2c37e57c63ade18806425 (diff) | |
| download | qmmp-640afe96b1b2f53d579b93c46d5d9e760502daa9.tar.gz qmmp-640afe96b1b2f53d579b93c46d5d9e760502daa9.tar.bz2 qmmp-640afe96b1b2f53d579b93c46d5d9e760502daa9.zip | |
coding style fixes
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6825 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Ui/skinned/windowsystem.cpp')
| -rw-r--r-- | src/plugins/Ui/skinned/windowsystem.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/Ui/skinned/windowsystem.cpp b/src/plugins/Ui/skinned/windowsystem.cpp index 4fb1aec1e..a971214b3 100644 --- a/src/plugins/Ui/skinned/windowsystem.cpp +++ b/src/plugins/Ui/skinned/windowsystem.cpp @@ -86,9 +86,8 @@ QString WindowSystem::netWindowManagerName() } XFree(retValue2); - retValue2 = NULL; - retValue2 = getWindowProperty(win, "_NET_WM_NAME"); + XFree(retValue1); if (retValue2 == NULL) return QString(); @@ -156,7 +155,6 @@ unsigned char* WindowSystem::getWindowProperty(WId win, const char* prop) if (reqAtom == None) return NULL; - int retCheck = None; Atom retType = None; int retFormat = 0; unsigned long retItems = 0UL; @@ -164,7 +162,7 @@ unsigned char* WindowSystem::getWindowProperty(WId win, const char* prop) unsigned char* retValue = NULL; // Check if the property exists and calculate its length. - retCheck = XGetWindowProperty(dsp, win, + int retCheck = XGetWindowProperty(dsp, win, reqAtom, 0L, 0L, False, AnyPropertyType, &retType, &retFormat, &retItems, &retMoreBytes, &retValue); |
