From fe024a800dbbbf69f282aa53af7b88ee6c2d8672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 3 Sep 2016 15:24:45 +0200 Subject: Fix FTBFS with GCC6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit 0d8345e6f7f2402d3ee88c0eb3d89e0e839bc5b5) --- kate/part/katebuffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kate/part/katebuffer.cpp') 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)< 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); -- cgit v1.2.1