From 2ebed0d70dedcc7ab42071fe751f69245e46913f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 11 Oct 2018 07:54:12 +0200 Subject: [PATCH] Make throwConnFailedException() protected It is an internal function so it has no business being public. Compare with CConnection where it is already private. --- common/rfb/SConnection.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/rfb/SConnection.h b/common/rfb/SConnection.h index 92ddff71..26302403 100644 --- a/common/rfb/SConnection.h +++ b/common/rfb/SConnection.h @@ -149,11 +149,6 @@ namespace rfb { bool authenticated() { return (state_ == RFBSTATE_INITIALISATION || state_ == RFBSTATE_NORMAL); } - // throwConnFailedException() prints a message to the log, sends a conn - // failed message to the client (if possible) and throws a - // ConnFailedException. - void throwConnFailedException(const char* format, ...) __printf_attr(2, 3); - SMsgReader* reader() { return reader_; } SMsgWriter* writer() { return writer_; } @@ -177,6 +172,11 @@ namespace rfb { rdr::S32 getPreferredEncoding() { return preferredEncoding; } protected: + // throwConnFailedException() prints a message to the log, sends a conn + // failed message to the client (if possible) and throws a + // ConnFailedException. + void throwConnFailedException(const char* format, ...) __printf_attr(2, 3); + void setState(stateEnum s) { state_ = s; } void setReader(SMsgReader *r) { reader_ = r; } -- 2.39.5