mirror of https://gitee.com/bigwinds/arangodb
fixed obvious compile errors
This commit is contained in:
parent
e1a24a1673
commit
4d13acfbcd
|
@ -42,7 +42,7 @@ std::shared_ptr<LogicalCollection> CollectionNameResolver::getCollection(
|
||||||
#else
|
#else
|
||||||
auto dataSource = getDataSource(id);
|
auto dataSource = getDataSource(id);
|
||||||
|
|
||||||
return dataSource.category() == LogicalCollection::category()
|
return dataSource->category() == LogicalCollection::category()
|
||||||
? std::static_pointer_cast<LogicalCollection>(dataSource) : nullptr;
|
? std::static_pointer_cast<LogicalCollection>(dataSource) : nullptr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -55,7 +55,7 @@ std::shared_ptr<LogicalCollection> CollectionNameResolver::getCollection(
|
||||||
#else
|
#else
|
||||||
auto dataSource = getDataSource(nameOrId);
|
auto dataSource = getDataSource(nameOrId);
|
||||||
|
|
||||||
return dataSource.category() == LogicalCollection::category()
|
return dataSource->category() == LogicalCollection::category()
|
||||||
? std::static_pointer_cast<LogicalCollection>(dataSource) : nullptr;
|
? std::static_pointer_cast<LogicalCollection>(dataSource) : nullptr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ std::shared_ptr<LogicalView> CollectionNameResolver::getView(
|
||||||
#else
|
#else
|
||||||
auto dataSource = getDataSource(id);
|
auto dataSource = getDataSource(id);
|
||||||
|
|
||||||
return dataSource.category() == LogicalView::category()
|
return dataSource->category() == LogicalView::category()
|
||||||
? std::static_pointer_cast<LogicalView>(dataSource) : nullptr;
|
? std::static_pointer_cast<LogicalView>(dataSource) : nullptr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -391,7 +391,7 @@ std::shared_ptr<LogicalView> CollectionNameResolver::getView(
|
||||||
#else
|
#else
|
||||||
auto dataSource = getDataSource(nameOrId);
|
auto dataSource = getDataSource(nameOrId);
|
||||||
|
|
||||||
return dataSource.category() == LogicalView::category()
|
return dataSource->category() == LogicalView::category()
|
||||||
? std::static_pointer_cast<LogicalView>(dataSource) : nullptr;
|
? std::static_pointer_cast<LogicalView>(dataSource) : nullptr;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue