From bb38814c256aae1c4442a16eb91a4f5d1fece200 Mon Sep 17 00:00:00 2001 From: jghali Date: Mon, 25 Jun 2012 18:06:29 +0000 Subject: fix quite a few build warnings git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17634 11d20701-8431-0410-a711-e3c959e3b870 --- scribus/text/storytext.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'scribus/text/storytext.cpp') diff --git a/scribus/text/storytext.cpp b/scribus/text/storytext.cpp index 97c1ef9..76285a9 100644 --- a/scribus/text/storytext.cpp +++ b/scribus/text/storytext.cpp @@ -117,15 +117,6 @@ StoryText StoryText::copy() const { StoryText result(doc); *(result.d) = *d; - return result; -// qDebug() << QString("StoryText::copy:"); - QListIterator it( *(result.d) ); - ScText* elem; - while ( it.hasNext() ) { - elem = it.next(); -// qDebug() << QString("\tchar '%1' size %2 (orig %3)").arg(elem->ch).arg(elem->fontSize()).arg(charStyle(i++).fontSize()); - } - return result; } @@ -533,7 +524,7 @@ void StoryText::insertCharsWithSmartHyphens(int pos, QString txt, bool applyNeig if (item->ch == SpecialChars::PARSEP) { insertParSep(index); } - if (d->cursorPosition >= index) { + if (d->cursorPosition >= static_cast(index)) { d->cursorPosition += 1; } ++inserted; @@ -846,7 +837,7 @@ void StoryText::applyCharStyle(int pos, uint len, const CharStyle& style ) if (len == 0) return; - int lastParStart = pos == 0? 0 : -1; + //int lastParStart = pos == 0? 0 : -1; ScText* itText; for (uint i=pos; i < pos+len; ++i) { itText = d->at(i); -- cgit