Fix FTBFS with GCC6

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 8 years ago
parent 970f841d2e
commit 42018ced07

@ -94,7 +94,7 @@ void InternalEditorAction::syncDirtyDB()
// changed record from the PC to the handheld
PilotRecord*rec=0L;
PilotLocalDatabase*localDB=new PilotLocalDatabase(*dbIter, false);
PilotLocalDatabase*localDB=new PilotLocalDatabase(*dbIter);
PilotDatabase *serialDB= deviceLink()->database(*dbIter);
if (!localDB->isOpen() || !serialDB->isOpen())
{
@ -334,7 +334,7 @@ emit logError(i18n("Setting the database flags on the handheld is not yet suppor
TQTimer::singleShot(0, this, TQT_SLOT(syncAppBlockChangedDB()));
return;
PilotLocalDatabase*localDB=new PilotLocalDatabase(*dbIter, false);
PilotLocalDatabase*localDB=new PilotLocalDatabase(*dbIter);
PilotDatabase *serialDB=deviceLink()->database(*dbIter);
// open the local and the serial database and copy the flags over
@ -371,7 +371,7 @@ void InternalEditorAction::syncAppBlockChangedDB()
DEBUGKPILOT<<"syncAppBlockChangedDB for DB "<<(*dbIter)<<endl;
#endif
PilotLocalDatabase*localDB=new PilotLocalDatabase(*dbIter, false);
PilotLocalDatabase*localDB=new PilotLocalDatabase(*dbIter);
PilotDatabase *serialDB=deviceLink()->database(*dbIter);
unsigned char*appBlock=new unsigned char[0xFFFF];

Loading…
Cancel
Save