kopia lustrzana https://gitlab.com/eliggett/wfview
Set pty serial port to NULL by default
rodzic
65602b5e48
commit
70363e50e8
|
@ -240,7 +240,7 @@ void pttyHandler::receiveDataIn(int fd) {
|
|||
void pttyHandler::closePort()
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
if (port)
|
||||
if (port != Q_NULLPTR)
|
||||
{
|
||||
port->close();
|
||||
delete port;
|
||||
|
|
|
@ -53,7 +53,7 @@ private:
|
|||
unsigned char buffer[256];
|
||||
|
||||
QString portName;
|
||||
QSerialPort* port;
|
||||
QSerialPort* port = Q_NULLPTR;
|
||||
qint32 baudRate;
|
||||
unsigned char stopBits;
|
||||
bool rolledBack;
|
||||
|
|
Ładowanie…
Reference in New Issue