Skip to content

Commit 65211a4

Browse files
Allen-Webbradosroka
authored andcommitted
Add missing lambda return types.
1 parent 9728c71 commit 65211a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Common/Utility.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ namespace usbguard
189189
std::function<std::string(const std::string&, const struct dirent*)> filter,
190190
std::function<int(const std::string&, const std::string&)> loader,
191191
std::function<bool(const std::pair<std::string, std::string>&, const std::pair<std::string, std::string>&)> sorter = \
192-
[](const std::pair<std::string, std::string>& a, const std::pair<std::string, std::string>& b)
192+
[](const std::pair<std::string, std::string>& a, const std::pair<std::string, std::string>& b) -> bool
193193
{
194194
return a.first < b.first;
195195
},

src/Library/UMockdevDeviceManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ namespace usbguard
289289
_umockdev_deviceroot = std::string(envval);
290290
_testbed.reset(umockdev_testbed_new());
291291
USBGUARD_LOG(Info) << "umockdev device directory set to " << _umockdev_deviceroot;
292-
const auto lambdaUMockdevFilterEntry = [](const std::string& fullpath, const struct dirent* dirent) {
292+
const auto lambdaUMockdevFilterEntry = [](const std::string& fullpath, const struct dirent* dirent) -> std::string {
293293
(void)dirent;
294294
struct stat st = {};
295295

@@ -305,7 +305,7 @@ namespace usbguard
305305
return std::string();
306306
}
307307
};
308-
const auto lambdaUMockdevAddFromFile = [this](const std::string& fullpath, const std::string& loadpath) {
308+
const auto lambdaUMockdevAddFromFile = [this](const std::string& fullpath, const std::string& loadpath) -> int {
309309
(void)fullpath;
310310

311311
for (const auto& device_path : umockdevLoadFromFile(loadpath)) {

0 commit comments

Comments
 (0)