Skip to content

Commit

Permalink
src:Clean code formatting and remove unnecessary lines
Browse files Browse the repository at this point in the history
Signed-off-by: xiaoming <2014500726@smail.xtu.edu.cn>
  • Loading branch information
QQxiaoming committed Nov 23, 2023
1 parent 65cd9f1 commit fc32789
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 8 deletions.
1 change: 0 additions & 1 deletion lib/qtssh/sshclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,6 @@ void SshClient::_channel_free()

if(sshState() == SshState::DisconnectingChannel && m_channels.size() == 0)
{

qCDebug(sshclient) << m_name << ": no more channel registered";

/* Stop keepalive */
Expand Down
2 changes: 1 addition & 1 deletion lib/qtssh/sshscpsend.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SshScpSend : public SshChannel
friend class SshClient;

public:
virtual ~SshScpSend() override;
~SshScpSend() override;
void close() override;

public slots:
Expand Down
2 changes: 1 addition & 1 deletion lib/qtssh/sshsftp.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SshSFtp : public SshChannel
friend class SshClient;

public:
virtual ~SshSFtp() override;
~SshSFtp() override;
void close() override;

QString send(const QString &source, QString dest);
Expand Down
1 change: 0 additions & 1 deletion lib/qtssh/sshtunnelin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Q_LOGGING_CATEGORY(logsshtunnelin, "ssh.tunnelin", QtWarningMsg)
SshTunnelIn::SshTunnelIn(const QString &name, SshClient *client)
: SshChannel(name, client)
{

}

SshTunnelIn::~SshTunnelIn()
Expand Down
2 changes: 1 addition & 1 deletion lib/qtssh/sshtunnelin.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SshTunnelIn : public SshChannel
friend class SshClient;

public:
virtual ~SshTunnelIn() override;
~SshTunnelIn() override;
void listen(QString host, quint16 localPort, quint16 remotePort, QString listenHost = "127.0.0.1", int queueSize = 16);
void close() override;
quint16 localPort();
Expand Down
2 changes: 1 addition & 1 deletion lib/qtssh/sshtunnelinconnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SshTunnelInConnection : public SshChannel

public:
void configure(LIBSSH2_CHANNEL* channel, quint16 port, QString hostname);
virtual ~SshTunnelInConnection() override;
~SshTunnelInConnection() override;
void close() override;

private:
Expand Down
2 changes: 1 addition & 1 deletion lib/qtssh/sshtunnelout.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SshTunnelOut : public SshChannel
friend class SshClient;

public:
virtual ~SshTunnelOut() override;
~SshTunnelOut() override;
void close() override;
quint16 localPort();
quint16 port() const;
Expand Down
2 changes: 1 addition & 1 deletion lib/qtssh/sshtunneloutconnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SshTunnelOutConnection : public SshChannel

public:
void configure(QTcpServer *server, quint16 remotePort, QString target = "127.0.0.1");
virtual ~SshTunnelOutConnection() override;
~SshTunnelOutConnection() override;
void close() override;

private:
Expand Down

0 comments on commit fc32789

Please sign in to comment.