- 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>
-
- 11 Nov, 2021 1 commit
-
-
Rosen Penev authored
C arrays can be used with make_unique in C++17. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 13 Oct, 2021 1 commit
-
-
Max Kellermann authored
-
- 27 May, 2021 1 commit
-
-
Max Kellermann authored
-
- 04 Mar, 2021 5 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Replaces the static Duplicate() method.
-
Max Kellermann authored
-
Max Kellermann authored
To make things simpler, AllocatedString is now a non-template class.
-
- 21 Jan, 2021 5 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
Replaces the static Duplicate() method.
-
Max Kellermann authored
-
Max Kellermann authored
To make things simpler, AllocatedString is now a non-template class.
-
- 01 Jan, 2021 1 commit
-
-
Max Kellermann authored
-
- 23 Jul, 2020 1 commit
-
-
Rosen Penev authored
Need to check for it in iconv.h. Otherwise meson prefixes a __builtin variant in the check.
-
- 30 May, 2020 1 commit
-
-
Max Kellermann authored
Passing `length+1` to `MultiByteToWideChar()` means the function may fill the whole buffer with output data, and could theoretically overwrite the null terminator. In practice, this will never happen, but this way, it's slightly more correct. Also, null-terminate after `MultiByteToWideChar()`, after we got the real output length. Again, this would never have been a problem, but who knows...
-
- 29 May, 2020 1 commit
-
-
Shen-Ta Hsieh authored
-
- 26 May, 2020 1 commit
-
-
Max Kellermann authored
-
- 22 Apr, 2020 4 commits
-
-
Max Kellermann authored
Using CompareStringEx() and FindNLSStringEx(). Implements a missing piece for https://github.com/MusicPlayerDaemon/MPD/issues/820
-
Max Kellermann authored
-
Max Kellermann authored
LINGUISTIC_IGNORECASE is unimplemented on Wine, but since we don't have any locale support (yet), and we're using LOCALE_NAME_INVARIANT, NORM_IGNORECASE should essentially be the same, so why bother.
-
Max Kellermann authored
Reverts commit fb3564fb LCMapStringEx() doesn't do what I imagined it would do 5 years ago. D'oh! Closes https://github.com/MusicPlayerDaemon/MPD/issues/820
-
- 03 Apr, 2020 6 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 26 Mar, 2020 1 commit
-
-
Rosen Penev authored
Found with readability-uppercase-literal-suffix Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 12 Mar, 2020 2 commits
-
-
Rosen Penev authored
None of the functions in these files come from ctype.h Also changed one instance of isdigit to the C++ variant. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
Rosen Penev authored
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 04 Feb, 2020 1 commit
-
-
Rosen Penev authored
Found with readability-uppercase-literal-suffix Signed-off-by:
Rosen Penev <rosenp@gmail.com>
-
- 18 Jan, 2020 1 commit
-
-
Max Kellermann authored
-
- 04 Nov, 2019 1 commit
-
-
Max Kellermann authored
-
- 07 Oct, 2019 1 commit
-
-
Andre Heider authored
-
- 15 Aug, 2019 1 commit
-
-
Max Kellermann authored
-
- 03 Aug, 2019 1 commit
-
-
Max Kellermann authored
-
- 05 Jul, 2019 1 commit
-
-
Max Kellermann authored
-
- 17 Jun, 2019 1 commit
-
-
Max Kellermann authored
-