diff options
author | Slávek Banko <[email protected]> | 2016-09-03 17:14:02 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2016-09-03 17:14:12 +0200 |
commit | fd85e292227106005707202a5bebeaa8cba987dc (patch) | |
tree | 118f8fb0aaf26d4ab446da73d33b4b4cdcaa41b5 | |
parent | 11793772f64750d8230b6913f682c95114ae7075 (diff) | |
download | tdesdk-fd85e292227106005707202a5bebeaa8cba987dc.tar.gz tdesdk-fd85e292227106005707202a5bebeaa8cba987dc.zip |
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 6dcbd0e68452bb64057e97a7c648478f2511b3f2)
-rw-r--r-- | kbabel/kbabeldict/modules/dbsearchengine/database.cpp | 4 | ||||
-rw-r--r-- | tdecachegrind/tdecachegrind/stackbrowser.cpp | 2 | ||||
-rw-r--r-- | umbrello/umbrello/docgenerators/docbookgenerator.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/database.cpp b/kbabel/kbabeldict/modules/dbsearchengine/database.cpp index 50880dcc..5fa69de0 100644 --- a/kbabel/kbabeldict/modules/dbsearchengine/database.cpp +++ b/kbabel/kbabeldict/modules/dbsearchengine/database.cpp @@ -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; } diff --git a/tdecachegrind/tdecachegrind/stackbrowser.cpp b/tdecachegrind/tdecachegrind/stackbrowser.cpp index 2257e586..2c04a024 100644 --- a/tdecachegrind/tdecachegrind/stackbrowser.cpp +++ b/tdecachegrind/tdecachegrind/stackbrowser.cpp @@ -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(); diff --git a/umbrello/umbrello/docgenerators/docbookgenerator.cpp b/umbrello/umbrello/docgenerators/docbookgenerator.cpp index bc7107f8..a012b703 100644 --- a/umbrello/umbrello/docgenerators/docbookgenerator.cpp +++ b/umbrello/umbrello/docgenerators/docbookgenerator.cpp @@ -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(); |