]> source.dussan.org Git - tigervnc.git/commit
Use std::vector for temporary char arrays
authorPierre Ossman <ossman@cendio.se>
Sun, 15 Jan 2023 13:01:28 +0000 (14:01 +0100)
committerPierre Ossman <ossman@cendio.se>
Sat, 4 Feb 2023 13:03:13 +0000 (14:03 +0100)
commite6c5b29f12780303299506fe04f089bc98b80c91
tree90c0ca35d030065f6f8d169a213dc3c4d923f3b6
parent15a393912673e2ae65b9b3a28f9b82f967c49f98
Use std::vector for temporary char arrays

It's more standard and familiar than our custom CharArray type, and it
still gives us automatic freeing of the buffer.

We could probably have used std::unique_ptr instead, but we are
currently targeting older compilers where C++11 isn't standard yet.
common/rfb/CConnection.cxx
common/rfb/CMsgReader.cxx
common/rfb/SMsgReader.cxx
win/rfb_win32/Registry.cxx
win/vncconfig/Connections.h