]> source.dussan.org Git - tigervnc.git/commit
Return std::string instead of dynamic allocations
authorPierre Ossman <ossman@cendio.se>
Tue, 10 Jan 2023 13:30:37 +0000 (14:30 +0100)
committerPierre Ossman <ossman@cendio.se>
Sat, 4 Feb 2023 13:03:13 +0000 (14:03 +0100)
commit337dbc392253af92b0577da062a5abc1d032b1ef
treee540dc7dc861f575d841970561651a9fac506120
parentdde95fccca9fffff0da2dc486d639b162115bb9e
Return std::string instead of dynamic allocations

We mostly use classical C strings, but the memory management around them
can get confusing and error prone. Let's use std::string for the cases
where we need to return a newly allocated string.
47 files changed:
common/network/TcpSocket.cxx
common/network/TcpSocket.h
common/rfb/CConnection.cxx
common/rfb/CMsgHandler.cxx
common/rfb/CMsgReader.cxx
common/rfb/CSecurityDH.cxx
common/rfb/CSecurityMSLogonII.cxx
common/rfb/CSecurityPlain.cxx
common/rfb/CSecurityRSAAES.cxx
common/rfb/CSecurityVncAuth.cxx
common/rfb/ComparingUpdateTracker.cxx
common/rfb/Configuration.cxx
common/rfb/Configuration.h
common/rfb/DecodeManager.cxx
common/rfb/EncodeManager.cxx
common/rfb/Hostname.h
common/rfb/LogWriter.cxx
common/rfb/SConnection.cxx
common/rfb/SMsgHandler.cxx
common/rfb/SMsgReader.cxx
common/rfb/SSecurityPlain.cxx
common/rfb/UserPasswdGetter.h
common/rfb/util.cxx
common/rfb/util.h
tests/perf/fbperf.cxx
tests/unit/convertlf.cxx
tests/unit/hostport.cxx
tests/unit/unicode.cxx
unix/xserver/hw/vnc/RFBGlue.cc
unix/xserver/hw/vnc/vncExtInit.cc
vncviewer/CConn.cxx
vncviewer/CConn.h
vncviewer/DesktopWindow.cxx
vncviewer/UserDialog.cxx
vncviewer/UserDialog.h
vncviewer/Viewport.cxx
win/rfb_win32/Clipboard.cxx
win/rfb_win32/Clipboard.h
win/rfb_win32/RegConfig.cxx
win/rfb_win32/Registry.cxx
win/rfb_win32/Registry.h
win/rfb_win32/SDisplay.cxx
win/rfb_win32/Win32Util.cxx
win/vncconfig/Authentication.h
win/vncconfig/Connections.h
win/vncconfig/Legacy.cxx
win/winvnc/VNCServerWin32.cxx