[X2Go-Commits] [x2goclient] 97/276: pulsemanager.{cpp, h}: switch port definitions to std::uint16_t.

git-admin at x2go.org git-admin at x2go.org
Sat Dec 31 01:34:40 CET 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 aa3538392aada33edd69d232776018b4ae08a23f
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Oct 29 04:20:15 2015 +0100

    pulsemanager.{cpp,h}: switch port definitions to std::uint16_t.
---
 debian/changelog     |    1 +
 src/pulsemanager.cpp |    4 ++--
 src/pulsemanager.h   |    7 ++++---
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 19d8d4f..aa7bd6d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -180,6 +180,7 @@ x2goclient (4.0.5.3-0x2go1) UNRELEASED; urgency=medium
     - pulsemanager.cpp: use initializer list for constructor.
     - pulsemanager.{cpp,h}: add pulse_version_{major,minor}_ member variables.
     - pulsemanager.cpp: reformat only.
+    - pulsemanager.{cpp,h}: switch port definitions to std::uint16_t.
 
   [ Bernard Cafarelli ]
   * New upstream version (4.0.5.3):
diff --git a/src/pulsemanager.cpp b/src/pulsemanager.cpp
index cd390bf..33d77d6 100644
--- a/src/pulsemanager.cpp
+++ b/src/pulsemanager.cpp
@@ -237,11 +237,11 @@ void PulseManager::shutdown () {
   loop.exec ();
 }
 
-int PulseManager::get_pulse_port () {
+std::uint16_t PulseManager::get_pulse_port () {
   return (pulse_port_);
 }
 
-void PulseManager::set_pulse_port (int pulse_port) {
+void PulseManager::set_pulse_port (std::uint16_t pulse_port) {
   pulse_port_ = pulse_port;
 }
 
diff --git a/src/pulsemanager.h b/src/pulsemanager.h
index 5b1fe37..9252739 100644
--- a/src/pulsemanager.h
+++ b/src/pulsemanager.h
@@ -35,6 +35,7 @@
 #include <QApplication>
 #include <QTimer>
 #include <assert.h>
+#include <cstdint>
 #include "x2gologdebug.h"
 #include "x2gosettings.h"
 
@@ -44,8 +45,8 @@ class PulseManager: public QObject {
   public:
     PulseManager ();
     ~PulseManager ();
-    int get_pulse_port ();
-    void set_pulse_port (int pulse_port);
+    std::uint16_t get_pulse_port ();
+    void set_pulse_port (std::uint16_t pulse_port);
     QProcess::ProcessState state ();
 
   public slots:
@@ -78,7 +79,7 @@ class PulseManager: public QObject {
     QDir pulse_dir_;
     QProcessEnvironment env_;
     QProcess *pulse_server_;
-    int pulse_port_;
+    std::uint16_t pulse_port_;
     QProcess::ProcessState state_;
     QString app_dir_;
     uint32_t pulse_version_major_;

--
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