Fixing the mac build

This commit is contained in:
samcake 2015-10-15 14:21:08 -07:00
parent cdfe9788d1
commit 416df1c44c
2 changed files with 5 additions and 5 deletions

View file

@ -76,7 +76,7 @@ namespace controller {
}
Filter* create(const std::string& name) const {
auto& entryIt = _entries.find(name);
const auto& entryIt = _entries.find(name);
if (entryIt != _entries.end()) {
return (*entryIt).second->create();
}

View file

@ -121,12 +121,12 @@ QObject* RouteBuilderProxy::filters(const QJsonValue& json) {
}
void RouteBuilderProxy::to(const QJsonValue& json) {
if (json.isString()) {
return to(_parent.endpointFor(_parent.inputFor(json.toString())));
if (json.isString()) {
return to(_parent.endpointFor(_parent.inputFor(json.toString())));
} else if (json.isObject()) {
// Endpoint is defined as an object, we expect a js function then
return to(nullptr);
//return to((Endpoint*) nullptr);
}
}