[X2Go-Commits] [x2goclient] 94/239: pulsemanager.cpp: use initializer list for constructor.
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 24 23:27:24 CEST 2016
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch bugfix/osx
in repository x2goclient.
commit 3bb877d7bf5d8691f88c68fddd55bfa5d1628090
Author: Mihai Moldovan <ionic at ionic.de>
Date: Thu Oct 1 01:49:47 2015 +0200
pulsemanager.cpp: use initializer list for constructor.
---
debian/changelog | 1 +
src/pulsemanager.cpp | 14 +++-----------
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 162a708..85f7579 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -171,6 +171,7 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
underscore and name.
- pulsemanager.cpp: minor non-behavior changing fixes.
- pulsemanager.{cpp,h}: reformat only.
+ - pulsemanager.cpp: use initializer list for constructor.
[ Bernard Cafarelli ]
* New upstream version (4.0.5.3):
diff --git a/src/pulsemanager.cpp b/src/pulsemanager.cpp
index 9e70ce6..002c9f8 100644
--- a/src/pulsemanager.cpp
+++ b/src/pulsemanager.cpp
@@ -24,9 +24,9 @@
#define DEBUG
#endif
-PulseManager::PulseManager () {
- pulse_X2Go_ = "/.x2go/pulse";
-
+PulseManager::PulseManager () : pulse_X2Go_("/.x2go/pulse"), pulse_port_(4713),
+ state_(QProcess::NotRunning), pulse_server_(NULL),
+ app_dir_(QApplication::applicationDirPath ()) {
pulse_dir_ = QDir (QDir::homePath ());
pulse_dir_.mkpath (pulse_dir_.absolutePath () + pulse_X2Go_ + "/tmp");
pulse_dir_.cd (pulse_X2Go_.mid (1));
@@ -34,14 +34,6 @@ PulseManager::PulseManager () {
env_ = QProcessEnvironment::systemEnvironment ();
env_.insert ("HOME", pulse_dir_.absolutePath ());
env_.insert ("TEMP", pulse_dir_.absolutePath () + "/tmp");
-
- pulse_port_ = 4713;
-
- state_ = QProcess::NotRunning;
-
- pulse_server_ = NULL;
-
- app_dir_ = QApplication::applicationDirPath ();
}
PulseManager::~PulseManager () {
--
Alioth's /srv/git/code.x2go.org/x2goclient.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list