summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-09 21:25:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-10 10:09:28 +0000
commitb2b318cca726630486dfcad442ba61499c3c7c12 (patch)
treee8a637d1e379c9622f8f683251030e6774fa59f0 /sw
parent5870f91a86bc26a827dbecdd330c63b9e3a51678 (diff)
we know that the encoding is not UTF-16 here
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dbui/createaddresslistdialog.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/ui/dbui/createaddresslistdialog.cxx b/sw/source/ui/dbui/createaddresslistdialog.cxx
index 9f1ef7702cf5..0502b8e94371 100644
--- a/sw/source/ui/dbui/createaddresslistdialog.cxx
+++ b/sw/source/ui/dbui/createaddresslistdialog.cxx
@@ -609,8 +609,7 @@ IMPL_LINK(SwCreateAddressListDialog, OkHdl_Impl, PushButton*, EMPTYARG)
}
//remove tab and quote
sLine = sLine.copy( 0, sLine.getLength() - 2 );
- pStream->WriteUnicodeOrByteText( sLine, RTL_TEXTENCODING_UTF8 );
- endl(*pStream);
+ pStream->WriteByteStringLine( sLine, RTL_TEXTENCODING_UTF8 );
::std::vector< ::std::vector< OUString > >::iterator aDataIter;
for( aDataIter = m_pCSVData->aDBData.begin(); aDataIter != m_pCSVData->aDBData.end(); ++aDataIter)
@@ -624,8 +623,7 @@ IMPL_LINK(SwCreateAddressListDialog, OkHdl_Impl, PushButton*, EMPTYARG)
}
//remove tab and quote
sLine = sLine.copy( 0, sLine.getLength() - 2 );
- pStream->WriteUnicodeOrByteText( sLine, RTL_TEXTENCODING_UTF8 );
- endl(*pStream);
+ pStream->WriteByteStringLine( sLine, RTL_TEXTENCODING_UTF8 );
}
aMedium.Commit();
EndDialog(RET_OK);