]> source.dussan.org Git - tigervnc.git/commit
Simplify code using range-based for loops
authorPierre Ossman <ossman@cendio.se>
Wed, 3 Apr 2024 20:05:49 +0000 (22:05 +0200)
committerPierre Ossman <ossman@cendio.se>
Mon, 24 Jun 2024 12:17:58 +0000 (14:17 +0200)
commit9bbacc70ab3af6bd652a4c6ff5bea1f7ea307eee
treefd5efab061e7385437214dab88dfbbe641ac87b8
parent9a8eb803bcf9b6e4443aa3e15a4600b177a1e725
Simplify code using range-based for loops

These are often more readable as they avoid a lot of the boilerplate of
iterating over fixed arrays or STL containers.

Note that this change is very conservative to avoid noise in "git
blame". Only loops where this is a clear improvement have been
converted.
13 files changed:
common/rfb/CMsgWriter.cxx
common/rfb/DecodeManager.cxx
common/rfb/EncodeManager.cxx
common/rfb/H264Decoder.cxx
common/rfb/SMsgWriter.cxx
common/rfb/Security.cxx
unix/x0vncserver/x0vncserver.cxx
unix/xserver/hw/vnc/XserverDesktop.cc
vncviewer/MonitorIndicesParameter.cxx
vncviewer/OptionsDialog.cxx
vncviewer/parameters.cxx
vncviewer/vncviewer.cxx
win/rfb_win32/SecurityPage.cxx