diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-09-10 13:19:41 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-01 21:17:12 +0100 |
commit | 6881c895ab317bd302addac5f228b7367136017f (patch) | |
tree | 18d1119f59209147d97e873c3dbc9be36e429aaf /common/rfb/ClientParams.cxx | |
parent | baca73d03217a1c219d9c4f024ffcd39f85fd322 (diff) | |
download | tigervnc-6881c895ab317bd302addac5f228b7367136017f.tar.gz tigervnc-6881c895ab317bd302addac5f228b7367136017f.zip |
Use stdint types
Avoid having our own custom stuff and instead use the modern, standard
types, for familiarity.
Diffstat (limited to 'common/rfb/ClientParams.cxx')
-rw-r--r-- | common/rfb/ClientParams.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/rfb/ClientParams.cxx b/common/rfb/ClientParams.cxx index d933aa34..572e2d82 100644 --- a/common/rfb/ClientParams.cxx +++ b/common/rfb/ClientParams.cxx @@ -95,12 +95,12 @@ void ClientParams::setCursorPos(const Point& pos) cursorPos_ = pos; } -bool ClientParams::supportsEncoding(rdr::S32 encoding) const +bool ClientParams::supportsEncoding(int32_t encoding) const { return encodings_.count(encoding) != 0; } -void ClientParams::setEncodings(int nEncodings, const rdr::S32* encodings) +void ClientParams::setEncodings(int nEncodings, const int32_t* encodings) { compressLevel = -1; qualityLevel = -1; @@ -153,7 +153,7 @@ void ClientParams::setLEDState(unsigned int state) ledState_ = state; } -rdr::U32 ClientParams::clipboardSize(unsigned int format) const +uint32_t ClientParams::clipboardSize(unsigned int format) const { int i; @@ -165,7 +165,7 @@ rdr::U32 ClientParams::clipboardSize(unsigned int format) const throw Exception("Invalid clipboard format 0x%x", format); } -void ClientParams::setClipboardCaps(rdr::U32 flags, const rdr::U32* lengths) +void ClientParams::setClipboardCaps(uint32_t flags, const uint32_t* lengths) { int i, num; |