1
0
Fork 0

fixed obvious compile errors

This commit is contained in:
jsteemann 2018-03-14 13:39:19 +01:00
parent e1a24a1673
commit 4d13acfbcd
1 changed files with 4 additions and 4 deletions

View File

@ -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
} }