Commit 002b3c8a authored by Joachim Eibl's avatar Joachim Eibl

Fix compile warning

git-svn-id: https://kdiff3.svn.sourceforge.net/svnroot/kdiff3/trunk@130 c8aa9fed-2811-0410-8543-893ada326672
parent 0512b5cb
...@@ -820,7 +820,7 @@ void SourceData::FileData::preprocess( bool bPreserveCR, QTextCodec* pEncoding ) ...@@ -820,7 +820,7 @@ void SourceData::FileData::preprocess( bool bPreserveCR, QTextCodec* pEncoding )
QByteArray ba = QByteArray::fromRawData( m_pBuf+skipBytes, m_size-skipBytes ); QByteArray ba = QByteArray::fromRawData( m_pBuf+skipBytes, m_size-skipBytes );
if ( m_eLineEndStyle == eLineEndStyleUndefined ) // normally only for one liners except when old mac line end style is used if ( m_eLineEndStyle == eLineEndStyleUndefined ) // normally only for one liners except when old mac line end style is used
{ {
for( int j=0; j<ba.size(); ++j ) // uint because QByteArray does not support operator[](qint64) for( int j=0; j<ba.size(); ++j ) // int because QByteArray does not support operator[](qint64)
{ {
if ( ba[j]=='\r' ) if ( ba[j]=='\r' )
ba[j]='\n'; // We only fix the old mac line end style, but leave it as "undefined" ba[j]='\n'; // We only fix the old mac line end style, but leave it as "undefined"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment