Fix FTBFS with GCC6

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 42018ced07)
r14.0.x r14.0.4
Slávek Banko 8 years ago
parent 1c1a7f0a8f
commit 8a84993475

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