[X2Go-Commits] [x2goclient] 94/219: pulsemanager.cpp: use initializer list for constructor.

git-admin at x2go.org git-admin at x2go.org
Thu Sep 22 04:36:35 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 a59cef1b249d89018861ee8f082783fcb85586c2
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 4757722..264d05d 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.
 
  -- X2Go Release Manager <git-admin at x2go.org>  Mon, 19 Sep 2016 09:07:07 +0200
 
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