diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-09-03 15:24:45 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-09-03 15:24:45 +0200 |
commit | 0d8345e6f7f2402d3ee88c0eb3d89e0e839bc5b5 (patch) | |
tree | 49418995f6253481438929dbb981e60e884b57b5 /kate | |
parent | 52a1b55368ec53b14347996851aca7eb29374397 (diff) | |
download | tdelibs-0d8345e6f7f2402d3ee88c0eb3d89e0e839bc5b5.tar.gz tdelibs-0d8345e6f7f2402d3ee88c0eb3d89e0e839bc5b5.zip |
Fix FTBFS with GCC6
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kate')
-rw-r--r-- | kate/part/katebuffer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kate/part/katebuffer.cpp b/kate/part/katebuffer.cpp index 61f81fadf..66c21696b 100644 --- a/kate/part/katebuffer.cpp +++ b/kate/part/katebuffer.cpp @@ -122,7 +122,7 @@ class KateFileLoader if ((c >= 2) && (m_codec->mibEnum() == 1000) && (m_buffer[1] == 0x00)) { // utf16LE, we need to put the decoder in LE mode - char reverseUtf16[3] = {0xFF, 0xFE, 0x00}; + char reverseUtf16[3] = {'\xFF', '\xFE', '\x00'}; m_decoder->toUnicode(reverseUtf16, 2); } @@ -917,7 +917,7 @@ void KateBuffer::updatePreviousNotEmptyLine(KateBufBlock *blk,uint current_line, } while (textLine->firstChar()==-1); kdDebug(13020)<<"updatePreviousNotEmptyLine: updating line:"<<(blk->startLine()+current_line)<<endl; TQMemArray<uint> foldingList=textLine->foldingListArray(); - while ( (foldingList.size()>0) && ( abs(foldingList[foldingList.size()-2])==1)) { + while ( (foldingList.size()>0) && ( labs(foldingList[foldingList.size()-2])==1)) { foldingList.resize(foldingList.size()-2,TQGArray::SpeedOptim); } addIndentBasedFoldingInformation(foldingList,addindent,deindent); |