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/rdr/MemOutStream.h | |
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/rdr/MemOutStream.h')
-rw-r--r-- | common/rdr/MemOutStream.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rdr/MemOutStream.h b/common/rdr/MemOutStream.h index f8b4d93c..33920a4d 100644 --- a/common/rdr/MemOutStream.h +++ b/common/rdr/MemOutStream.h @@ -33,7 +33,7 @@ namespace rdr { public: MemOutStream(int len=1024) { - start = ptr = new U8[len]; + start = ptr = new uint8_t[len]; end = start + len; } @@ -63,7 +63,7 @@ namespace rdr { if (len < (size_t)(end - start)) throw Exception("Overflow in MemOutStream::overrun()"); - U8* newStart = new U8[len]; + uint8_t* newStart = new uint8_t[len]; memcpy(newStart, start, ptr - start); ptr = newStart + (ptr - start); delete [] start; @@ -71,7 +71,7 @@ namespace rdr { end = newStart + len; } - U8* start; + uint8_t* start; }; } |