2021-06-01 Fred Gleason <fredg@paravelsystems.com>

* Cleaned up compile warnings in 'lib/rdcdplayer.cpp'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-06-01 10:57:03 -04:00
parent fb50414428
commit bbe965126d
2 changed files with 8 additions and 4 deletions

View File

@ -21762,3 +21762,5 @@
* Cleaned up compile warning in 'lib/rdcart_dialog.cpp'. * Cleaned up compile warning in 'lib/rdcart_dialog.cpp'.
2021-06-01 Fred Gleason <fredg@paravelsystems.com> 2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Added 'RDCheckExitCode()' functions in 'lib/rdconf.[cpp|h]. * Added 'RDCheckExitCode()' functions in 'lib/rdconf.[cpp|h].
2021-06-01 Fred Gleason <fredg@paravelsystems.com>
* Cleaned up compile warnings in 'lib/rdcdplayer.cpp'.

View File

@ -2,7 +2,7 @@
// //
// Abstract a Linux CDROM Device. // Abstract a Linux CDROM Device.
// //
// (C) Copyright 2002-2020 Fred Gleason <fredg@paravelsystems.com> // (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
// //
// This program is free software; you can redistribute it and/or modify // This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License // it under the terms of the GNU Library General Public License
@ -30,7 +30,7 @@
#include <qdatetime.h> #include <qdatetime.h>
#include <rdcdplayer.h> #include <rdcdplayer.h>
#include <rdconf.h>
RDCdPlayer::RDCdPlayer(FILE *profile_msgs,QWidget *parent) RDCdPlayer::RDCdPlayer(FILE *profile_msgs,QWidget *parent)
: QObject(parent) : QObject(parent)
@ -221,13 +221,15 @@ void RDCdPlayer::lock()
void RDCdPlayer::unlock() void RDCdPlayer::unlock()
{ {
system(("eject -i off "+cdrom_device).toUtf8()); RDCheckExitCode("RDCdPlayer unlock process",
system(("eject -i off "+cdrom_device).toUtf8()));
} }
void RDCdPlayer::eject() void RDCdPlayer::eject()
{ {
system(("eject "+cdrom_device).toUtf8()); RDCheckExitCode("RDCdPlayer eject project",
system(("eject "+cdrom_device).toUtf8()));
} }