- 12 Nov, 2021 1 commit
-
-
Rosen Penev authored
SonarLint reports the latter to be better: std::scoped_lock basically provides the same feature as std::lock_guard, but is more generic: It can lock several mutexes at the same time, with a deadlock prevention mechanism (see {rule:cpp:S5524}). The equivalent code to perform simultaneous locking with std::lock_guard is significantly more complex. Therefore, it is simpler to use std::scoped_lock all the time, even when locking only one mutex (there will be no performance impact). Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 08 Nov, 2021 1 commit
-
-
Max Audron authored
Adds the Interface Name as an argument to the *Init functions to make it possible to select which interface is used by upnp to detect servers. Currently "nullptr" is passed in to let the upnp library select an interface, as before.
-
- 19 Oct, 2021 2 commits
-
-
Max Kellermann authored
Should have been removed by commit a8087dc1
-
Max Kellermann authored
-
- 15 Oct, 2021 3 commits
-
-
Max Kellermann authored
Fixes https://github.com/MusicPlayerDaemon/MPD/discussions/1281 The problem occurred when there was libfmt-dev installed, but it was too old (e.g. on Debian Buster), and Meson used the wrap fallback. Those internal MPD libraries where the libfmt dependency was not declared were still using the old system libfmt headers, which are not ABI-compatible with MPD's own libfmt build.
-
Max Kellermann authored
Fixes part 2 of https://github.com/MusicPlayerDaemon/MPD/issues/1279
-
Max Kellermann authored
Fixes part 1 of https://github.com/MusicPlayerDaemon/MPD/issues/1279
-
- 13 Oct, 2021 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 08 Sep, 2021 1 commit
-
-
Rosen Penev authored
emplace already calls std::pair. No need for it again. No need to emplace when calling std::make_shared. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 31 May, 2021 2 commits
-
-
Rosen Penev authored
Found with cppcoreguidelines-special-member-functions Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
Found with cppcoreguidelines-special-member-functions Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 04 Mar, 2021 1 commit
-
-
Rosen Penev authored
Shorter. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 17 Jan, 2021 1 commit
-
-
Rosen Penev authored
Found with cppcoreguidelines-interfaces-global-init Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 01 Jan, 2021 1 commit
-
-
Max Kellermann authored
-
- 14 Dec, 2020 1 commit
-
-
Max Kellermann authored
-
- 30 Nov, 2020 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Hooray C++17!
-
- 06 Nov, 2020 1 commit
-
-
Rosen Penev authored
Found with modernize-avoid-bind Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 28 Oct, 2020 1 commit
-
-
Rosen Penev authored
Shorter. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 20 Jul, 2020 3 commits
-
-
Max Kellermann authored
This is no longer necessary with the new API.
-
Max Kellermann authored
As a side effect, the input plugin closes the SMB/CIFS connection after closing the file. This solves one part of https://github.com/MusicPlayerDaemon/MPD/issues/916
-
Max Kellermann authored
-
- 06 Jul, 2020 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Fixes use-after-free crash bug during MPD shutdown.
-
- 26 Mar, 2020 1 commit
-
-
Max Kellermann authored
-
- 16 Mar, 2020 1 commit
-
-
Rosen Penev authored
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 12 Mar, 2020 1 commit
-
-
Rosen Penev authored
Introduced in C++17. It replaces gcc's warn_unused_result. Found with modernize-use-nodiscard. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 20 Feb, 2020 1 commit
-
-
Max Kellermann authored
-
- 05 Feb, 2020 1 commit
-
-
Rosen Penev authored
Found with bugprone-move-forwarding-reference Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 02 Feb, 2020 1 commit
-
-
Rosen Penev authored
Found with modernize-loop-convert Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 01 Feb, 2020 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 18 Jan, 2020 1 commit
-
-
Max Kellermann authored
-
- 04 Nov, 2019 1 commit
-
-
Max Kellermann authored
Fixes yet another build failure (which however only affects the 0.22 branch). Closes https://github.com/MusicPlayerDaemon/MPD/issues/666
-
- 05 Jul, 2019 1 commit
-
-
Max Kellermann authored
-
- 17 Jun, 2019 1 commit
-
-
Max Kellermann authored
-
- 26 Apr, 2019 1 commit
-
-
Max Kellermann authored
Just like std::condition_variable, which however has no way to specify the std::mutex directly.
-
- 25 Apr, 2019 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-