[Pkg-mpd-commits] [qmpdclient] 11/38: config.cpp: move variable closer to the usage

Andrey Rahmatullin wrar at moszumanska.debian.org
Mon May 23 07:19:44 UTC 2016


This is an automated email from the git hooks/post-receive script.

wrar pushed a commit to branch master
in repository qmpdclient.

commit 73057372cb92020fb47fc09d998c8a167263c62a
Author: Denis Krjuchkov <denis at crazydev.net>
Date:   Sat Mar 31 11:36:33 2012 +0600

    config.cpp: move variable closer to the usage
---
 src/config.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config.cpp b/src/config.cpp
index 28432b0..1231390 100644
--- a/src/config.cpp
+++ b/src/config.cpp
@@ -41,11 +41,11 @@ Config::Config() :
 
 	// Path for system wide, and user's data files
 	QString execPath = QCoreApplication::applicationDirPath();
-	QString prefix = execPath.section("/", 0, -2);
 #ifdef Q_WS_WIN
 	m_systemPath = execPath + "/";
 	m_userPath = m_cachePath;
 #else
+	QString prefix = execPath.section("/", 0, -2);
 	m_systemPath = prefix + "/share/QMPDClient/";
 	m_userPath = QDir::homePath() + "/.local/share/QMPDClient/";
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mpd/qmpdclient.git



More information about the Pkg-mpd-commits mailing list