summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/diff.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/diff.cpp b/src/diff.cpp
index 2bf58eb..fba2c1a 100644
--- a/src/diff.cpp
+++ b/src/diff.cpp
@@ -241,7 +241,8 @@ void SourceData::setData( const TQString& data )
}
FileAccess f( m_tempInputFileName );
- bool bSuccess = f.writeFile( TQTextCodec::codecForName("UTF-8")->fromUnicode(data), data.length() );
+ TQCString cData = TQTextCodec::codecForName("UTF-8")->fromUnicode(data);
+ bool bSuccess = f.writeFile( cData, cData.length() );
if ( !bSuccess )
{
KMessageBox::error( m_pOptionDialog, i18n("Writing clipboard data to temp file failed.") );