diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-30 09:38:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-05 09:18:18 +0000 |
commit | 6bbd168aac145b0f06b527450268b128783398fc (patch) | |
tree | 82456c2a5a8f016de8f9b456c0df7525b90ff95c /vcl/generic | |
parent | 164b4ba0c713d09684e1381590179cd3dadce2b7 (diff) |
convert SvStream::WriteLine to rtl::OString
Diffstat (limited to 'vcl/generic')
-rw-r--r-- | vcl/generic/fontmanager/fontcache.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/generic/fontmanager/fontcache.cxx b/vcl/generic/fontmanager/fontcache.cxx index 12767f9822e8..cbad197a19f5 100644 --- a/vcl/generic/fontmanager/fontcache.cxx +++ b/vcl/generic/fontmanager/fontcache.cxx @@ -122,7 +122,7 @@ void FontCache::flush() } aStream.SetLineDelimiter( LINEEND_LF ); - aStream.WriteLine( ByteString( CACHE_MAGIC ) ); + aStream.WriteLine(rtl::OString(RTL_CONSTASCII_STRINGPARAM(CACHE_MAGIC))); PrintFontManager& rManager( PrintFontManager::get() ); MultiAtomProvider* pAtoms = rManager.m_pAtoms; @@ -139,7 +139,7 @@ void FontCache::flush() aLine.append(aDirectory); if( rDir.empty() && dir_it->second.m_bNoFiles ) aLine.insert(0, RTL_CONSTASCII_STRINGPARAM("Empty")); - aStream.WriteLine(ByteString(aLine.makeStringAndClear())); + aStream.WriteLine(aLine.makeStringAndClear()); for( FontDirMap::const_iterator entry_it = rDir.begin(); entry_it != rDir.end(); ++entry_it ) { @@ -150,14 +150,14 @@ void FontCache::flush() aLine.append(RTL_CONSTASCII_STRINGPARAM("File:")); aLine.append(entry_it->first); - aStream.WriteLine(ByteString(aLine.makeStringAndClear())); + aStream.WriteLine(aLine.makeStringAndClear()); int nEntrySize = entry_it->second.m_aEntry.size(); // write: type;nfonts aLine.append(static_cast<sal_Int32>(rEntry.front()->m_eType)); aLine.append(';'); aLine.append(static_cast<sal_Int32>(nEntrySize)); - aStream.WriteLine(ByteString(aLine.makeStringAndClear())); + aStream.WriteLine(aLine.makeStringAndClear()); sal_Int32 nSubEntry = 0; for( FontCacheEntry::const_iterator it = rEntry.begin(); it != rEntry.end(); ++it, nSubEntry++ ) @@ -182,7 +182,7 @@ void FontCache::flush() aLine.append(OUStringToOString(rAdd, RTL_TEXTENCODING_UTF8)); } } - aStream.WriteLine(ByteString(aLine.makeStringAndClear())); + aStream.WriteLine(aLine.makeStringAndClear()); const OUString& rPSName( pAtoms->getString( ATOM_PSNAME, (*it)->m_nPSName ) ); aLine.append(nSubEntry); @@ -238,9 +238,9 @@ void FontCache::flush() aLine.append(';'); aLine.append(OUStringToOString((*it)->m_aStyleName, RTL_TEXTENCODING_UTF8)); } - aStream.WriteLine(ByteString(aLine.makeStringAndClear())); + aStream.WriteLine(aLine.makeStringAndClear()); } - aStream.WriteLine( ByteString() ); + aStream.WriteLine(rtl::OString()); } } m_bDoFlush = false; |