- Core library header files added to core.h file.
- Fixed windows build. - Added AccommodationService class.
This commit is contained in:
+3
-1
@@ -9,6 +9,8 @@
|
||||
#include <odb/database.hxx>
|
||||
#include <odb/result.hxx>
|
||||
|
||||
#include "core_global.h"
|
||||
|
||||
template<class T>
|
||||
class Service
|
||||
{
|
||||
@@ -22,7 +24,7 @@ public:
|
||||
|
||||
QList<QSharedPointer<T> > ret;
|
||||
for (typename odb::result<T>::iterator it = res.begin(); it != res.end(); it++) {
|
||||
QSharedPointer<T> entity = db->template load<T>(((T*)*it)->id());
|
||||
QSharedPointer<T> entity = db->template load<T>(((T)*it).getId());
|
||||
ret.append(entity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user