mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:27:48 +02:00
fix several warnings
This commit is contained in:
parent
7669f9ed2c
commit
0068af4cb6
2 changed files with 2 additions and 29 deletions
|
@ -72,7 +72,7 @@ DeadZoneFilter::FactoryEntryBuilder DeadZoneFilter::_factoryEntryBuilder;
|
||||||
|
|
||||||
float DeadZoneFilter::apply(float value) const {
|
float DeadZoneFilter::apply(float value) const {
|
||||||
float scale = 1.0f / (1.0f - _min);
|
float scale = 1.0f / (1.0f - _min);
|
||||||
if (abs(value) < _min) {
|
if (std::abs(value) < _min) {
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
}
|
}
|
||||||
return (value - _min) * scale;
|
return (value - _min) * scale;
|
||||||
|
|
|
@ -6,32 +6,5 @@
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
||||||
#pragma once
|
|
||||||
#ifndef hifi_Controllers_Route_h
|
|
||||||
#define hifi_Controllers_Route_h
|
|
||||||
|
|
||||||
#include "Endpoint.h"
|
#include "Route.h"
|
||||||
#include "Filter.h"
|
|
||||||
#include "Logging.h"
|
|
||||||
|
|
||||||
class QJsonObject;
|
|
||||||
|
|
||||||
namespace controller {
|
|
||||||
|
|
||||||
/*
|
|
||||||
* encapsulates a source, destination and filters to apply
|
|
||||||
*/
|
|
||||||
class Route {
|
|
||||||
public:
|
|
||||||
Endpoint::Pointer _source;
|
|
||||||
Endpoint::Pointer _destination;
|
|
||||||
Filter::List _filters;
|
|
||||||
|
|
||||||
using Pointer = std::shared_ptr<Route>;
|
|
||||||
using List = std::list<Pointer>;
|
|
||||||
|
|
||||||
void parse(const QJsonObject& json);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue