Fix FTBFS with GCC6

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 8 years ago
parent 21f0554315
commit 6dcbd0e684

@ -1163,13 +1163,13 @@ DataBaseManager::addLocation (TQString word, unsigned int location)
antibounce++;
//calculate step or use antibounce
if (abs ((int) d[loc] - (int) location) < 50
if (labs ((int) d[loc] - (int) location) < 50
|| antibounce > 100)
step = 1; //Go linear...
else
{
step =
(abs (d[loc] - location) * num) / totalrecord + 1;
(labs (d[loc] - location) * num) / totalrecord + 1;
}

@ -234,7 +234,7 @@ Stack* Stack::split(TraceFunction* f)
// cycles are listed on there own
if (f->cycle() == f) return 0;
if (_top->cycle() == _top) return false;
if (_top->cycle() == _top) return 0;
for (c=calls.first();c;c=calls.next()) {
TraceCallList l = c->called()->callings();

@ -97,7 +97,7 @@ TDEIO::Job* DocbookGenerator::generateDocbookForProjectInto(const KURL& destDir)
// lets open the file for writing
if( !file.open( IO_WriteOnly ) ) {
KMessageBox::error(0, i18n("There was a problem saving file: %1").arg(tmpfile.name()), i18n("Save Error"));
return false;
return 0;
}
umlDoc->saveToXMI(*TQT_TQIODEVICE(&file)); // save the xmi stuff to it
file.close();

Loading…
Cancel
Save