diff options
author | Pierre Ossman <ossman@cendio.se> | 2023-01-09 19:01:35 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-01 21:17:12 +0100 |
commit | d98720b736eb908d63c1ecb3779fc2a3cd9f4914 (patch) | |
tree | 4d548eba62bcabe0892054d547b157ba1178249f /win/rfb_win32/Security.h | |
parent | 6881c895ab317bd302addac5f228b7367136017f (diff) | |
download | tigervnc-d98720b736eb908d63c1ecb3779fc2a3cd9f4914.tar.gz tigervnc-d98720b736eb908d63c1ecb3779fc2a3cd9f4914.zip |
Use std::vector for basic data arrays
Avoid our own custom types in favour of what's already included with
C++.
Diffstat (limited to 'win/rfb_win32/Security.h')
-rw-r--r-- | win/rfb_win32/Security.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/rfb_win32/Security.h b/win/rfb_win32/Security.h index 15825192..85317fae 100644 --- a/win/rfb_win32/Security.h +++ b/win/rfb_win32/Security.h @@ -24,7 +24,8 @@ #ifndef __RFB_WIN32_SECURITY_H__ #define __RFB_WIN32_SECURITY_H__ -#include <rdr/types.h> +#include <stdint.h> +#include <vector> #include <rfb_win32/LocalMem.h> #include <rfb_win32/TCharArray.h> #include <aclapi.h> @@ -64,10 +65,9 @@ namespace rfb { }; // Helper class for handling SIDs - struct Sid : rdr::U8Array { + struct Sid : std::vector<uint8_t> { Sid() {} - operator PSID() const {return (PSID)buf;} - PSID takePSID() {PSID r = (PSID)buf; buf = 0; return r;} + operator PSID() const {return (PSID)data();} static PSID copySID(const PSID sid); |