Fix some compilation warnings

This commit is contained in:
emeric
2020-03-29 14:16:58 +02:00
parent f4d1202dda
commit f5034e1e7b
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -23,14 +23,14 @@ namespace StringUtils
{
template<>
std::optional<API::Subsonic::Id>
StringUtils::readAs(const std::string& str)
readAs(const std::string& str)
{
return API::Subsonic::IdFromString(str);
}
template<>
std::optional<bool>
StringUtils::readAs(const std::string& str)
readAs(const std::string& str)
{
if (str == "true")
return true;
+2 -2
View File
@@ -90,10 +90,10 @@ namespace StringUtils
{
template<>
std::optional<API::Subsonic::Id>
StringUtils::readAs(const std::string& str);
readAs(const std::string& str);
template<>
std::optional<bool>
StringUtils::readAs(const std::string& str);
readAs(const std::string& str);
}
+1 -1
View File
@@ -65,7 +65,7 @@ namespace StringUtils
{
template<>
std::optional<API::Subsonic::ClientVersion>
StringUtils::readAs(const std::string& str)
readAs(const std::string& str)
{
// Expects "X.Y.Z"
const auto numbers {StringUtils::splitString(str, ".")};