mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-19 11:11:43 +02:00
Fix linter warnings
This commit is contained in:
parent
66868e2501
commit
5c41afd9e3
31 changed files with 131 additions and 116 deletions
|
@ -1,6 +1,6 @@
|
|||
/***
|
||||
This file is part of snapcast
|
||||
Copyright (C) 2014-2024 Johannes Pohl
|
||||
Copyright (C) 2014-2025 Johannes Pohl
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -112,9 +112,9 @@ struct ErrorOr
|
|||
}
|
||||
|
||||
/// @return the moved value
|
||||
T takeValue()
|
||||
T&& takeValue()
|
||||
{
|
||||
return std::move(std::get<T>(var));
|
||||
return std::get<T>(std::move(var));
|
||||
}
|
||||
|
||||
/// @return the error
|
||||
|
@ -124,10 +124,9 @@ struct ErrorOr
|
|||
}
|
||||
|
||||
/// @return the moved error
|
||||
ErrorCode takeError()
|
||||
ErrorCode&& takeError()
|
||||
{
|
||||
auto ec = std::move(std::get<ErrorCode>(var));
|
||||
return ec;
|
||||
return std::get<ErrorCode>(std::move(var));
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue