mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-08 04:31:08 -06:00
Remove warnings in Clang
This commit is contained in:
@@ -89,22 +89,22 @@ namespace {
|
||||
namespace openspace {
|
||||
|
||||
std::unique_ptr<ServerInterface> ServerInterface::createFromDictionary(
|
||||
const ghoul::Dictionary& config)
|
||||
const ghoul::Dictionary& config)
|
||||
{
|
||||
// TODO: Use documentation to verify dictionary
|
||||
std::unique_ptr<ServerInterface> si = std::make_unique<ServerInterface>(config);
|
||||
return std::move(si);
|
||||
return si;
|
||||
}
|
||||
|
||||
ServerInterface::ServerInterface(const ghoul::Dictionary& config)
|
||||
: properties::PropertyOwner({ "", "", "" })
|
||||
, _type(TypeInfo)
|
||||
, _port(PortInfo, 0)
|
||||
, _defaultAccess(DefaultAccessInfo)
|
||||
, _enabled(EnabledInfo)
|
||||
, _allowAddresses(AllowAddressesInfo)
|
||||
, _requirePasswordAddresses(RequirePasswordAddressesInfo)
|
||||
, _denyAddresses(DenyAddressesInfo)
|
||||
, _enabled(EnabledInfo)
|
||||
, _defaultAccess(DefaultAccessInfo)
|
||||
, _password(PasswordInfo)
|
||||
{
|
||||
|
||||
@@ -117,7 +117,7 @@ ServerInterface::ServerInterface(const ghoul::Dictionary& config)
|
||||
|
||||
const std::string identifier = config.value<std::string>(KeyIdentifier);
|
||||
|
||||
std::function readList =
|
||||
auto readList =
|
||||
[config](const std::string& key, properties::StringListProperty& list) {
|
||||
if (config.hasValue<ghoul::Dictionary>(key)) {
|
||||
const ghoul::Dictionary& dict = config.value<ghoul::Dictionary>(key);
|
||||
|
||||
Reference in New Issue
Block a user