-
- Downloads
Project 'savoirfairelinux/ring-daemon' was moved to 'savoirfairelinux/jami-daemon'. Please update any links and bookmarks that may still have the old path.
daemon: (video) replace anonymous namespace by static keyword
Also minor code cleanup. Rationale: The C++ standard has un-deprecated the use of the static keyword. But the superiority of anonymous namespaces is mainly for type declarations (including structures and classes). For variables and functions, the static keyword is functionally equivalent to using an anonymous namespace. But there is a major drawback with the latter! Name mangling for anonymous namespaces is such that it's awkward to type/find a local symbol declared in them when using a debugger such as gdb. Refs #50143 Change-Id: I925af61d14db08fafa37bfbfeedde95feadd0948
Showing
- daemon/src/video/libav_utils.cpp 14 additions, 23 deletionsdaemon/src/video/libav_utils.cpp
- daemon/src/video/socket_pair.cpp 10 additions, 13 deletionsdaemon/src/video/socket_pair.cpp
- daemon/src/video/test/test_shm.cpp 10 additions, 11 deletionsdaemon/src/video/test/test_shm.cpp
- daemon/src/video/v4l2/video_device_monitor.cpp 42 additions, 39 deletionsdaemon/src/video/v4l2/video_device_monitor.cpp
- daemon/src/video/v4l2/video_v4l2.cpp 8 additions, 11 deletionsdaemon/src/video/v4l2/video_v4l2.cpp
- daemon/src/video/video_encoder.cpp 2 additions, 3 deletionsdaemon/src/video/video_encoder.cpp
Please register or sign in to comment