[X2Go-Commits] [x2gothinclient] 01/03: cdmanager/powerej/mb.{cpp, h}: whitespace only.
git-admin at x2go.org
git-admin at x2go.org
Fri Nov 23 03:55:43 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gothinclient.
commit 20fe92d1364ada46b4d6a4e17689e1c6e4fdc8ad
Author: Mihai Moldovan <ionic at ionic.de>
Date: Fri Nov 23 03:46:28 2018 +0100
cdmanager/powerej/mb.{cpp,h}: whitespace only.
---
cdmanager/powerej/mb.cpp | 20 ++++++++++----------
cdmanager/powerej/mb.h | 2 +-
debian/changelog | 1 +
3 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/cdmanager/powerej/mb.cpp b/cdmanager/powerej/mb.cpp
index 95747e7..a849225 100644
--- a/cdmanager/powerej/mb.cpp
+++ b/cdmanager/powerej/mb.cpp
@@ -18,23 +18,23 @@ void MPushButton::slot_cl()
FILE* ptr=fopen("/proc/mounts","rt");
if(!ptr)
{
- qDebug()<<"couldn't open";
- return;
+ qDebug()<<"couldn't open";
+ return;
}
-
+
char ln[255];
while(!feof(ptr))
{
fgets(ln,254,ptr);
QString line = ln;
- if(line.indexOf("CDROM")!=-1)
- {
- QStringList arg;
- arg<<line.split(" ")[0];
- qDebug()<<"Ejecting: "<<arg[0];
- QProcess::startDetached("eject",arg);
- }
+ if(line.indexOf("CDROM")!=-1)
+ {
+ QStringList arg;
+ arg<<line.split(" ")[0];
+ qDebug()<<"Ejecting: "<<arg[0];
+ QProcess::startDetached("eject",arg);
+ }
}
fclose(ptr);
}
diff --git a/cdmanager/powerej/mb.h b/cdmanager/powerej/mb.h
index 7fc94ea..c08cba9 100644
--- a/cdmanager/powerej/mb.h
+++ b/cdmanager/powerej/mb.h
@@ -1,5 +1,5 @@
#ifndef _______MB_H_
-#define _______MB_H_
+#define _______MB_H_
#include <QPushButton>
class MPushButton: public QPushButton
diff --git a/debian/changelog b/debian/changelog
index 325ad78..2294852 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -120,6 +120,7 @@ x2gothinclient (1.5.0.0-0x2go1) UNRELEASED; urgency=low
- misc: update Oleksandr's mail address.
- misc manpages: whitespace only.
- misc manpages: pre-release version and date updates.
+ - cdmanager/powerej/mb.{cpp,h}: whitespace only.
* usbmount/x2gousbmount:
- Fix typo int -> print. Fixes: #840.
- Update copyright notice.
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gothinclient.git
More information about the x2go-commits
mailing list