From b487901f1ee835f3e50726823dcb27081b2f425f Mon Sep 17 00:00:00 2001 From: Manuel Schneider Date: Thu, 22 May 2014 14:09:03 +0200 Subject: Make VNCServer::isrunning inline --- src/client/vnc/vncserver.cpp | 11 +---------- src/client/vnc/vncserver.h | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/client/vnc/vncserver.cpp b/src/client/vnc/vncserver.cpp index 56800f4..2b341fb 100644 --- a/src/client/vnc/vncserver.cpp +++ b/src/client/vnc/vncserver.cpp @@ -55,13 +55,6 @@ VncServer::~VncServer() // TODO Auto-generated destructor stub } -bool VncServer::isVncServerRunning() -{ - if (_port > 0) - return true; - return false; -} - void VncServer::start() { // Keep things clean @@ -121,9 +114,7 @@ void VncServer::start() args << rect; qDebug() << "Arguments are: " << args; - _process->start("x11vnc", - args, - QIODevice::ReadOnly); + _process->start("x11vnc", args, QIODevice::ReadOnly); } void VncServer::stop() diff --git a/src/client/vnc/vncserver.h b/src/client/vnc/vncserver.h index 790b295..ac45822 100644 --- a/src/client/vnc/vncserver.h +++ b/src/client/vnc/vncserver.h @@ -31,7 +31,7 @@ private: public: static VncServer *instance(); - bool isVncServerRunning(); + inline bool isVncServerRunning(){ return _port > 0; } void start(); void stop(); -- cgit v1.2.3-55-g7522