summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-01-17 08:48:50 +0200
committerMichael Stahl <mstahl@redhat.com>2014-01-22 22:00:47 +0000
commit16a2e903356520c90a9bf91c47265f79be12e74a (patch)
treefe696998dc937562003b0d4273ded896df1ba5f5 /vcl/win
parentd803483f6a5938b0d0708b8db74b30c511dd8e31 (diff)
remove SvStream::operator<< methods
.. and convert the last few places still using those methods. Change-Id: Id2cd8f9c0dd281df43af439d4fef65881f34a6fd Reviewed-on: https://gerrit.libreoffice.org/7495 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/source/gdi/salgdi3.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/win/source/gdi/salgdi3.cxx b/vcl/win/source/gdi/salgdi3.cxx
index c38f2718a442..a3758f4b0dd1 100644
--- a/vcl/win/source/gdi/salgdi3.cxx
+++ b/vcl/win/source/gdi/salgdi3.cxx
@@ -163,7 +163,7 @@ ImplFontAttrCache::~ImplFontAttrCache()
if ( aCacheFile.IsWritable() )
{
sal_uInt32 nCacheMagic = ImplFontAttrCache::MAGIC;
- aCacheFile << nCacheMagic;
+ aCacheFile.WriteUInt32( nCacheMagic );
// write the cache entries to the file
FontAttrMap::const_iterator aIter = aFontAttributes.begin();
@@ -171,22 +171,22 @@ ImplFontAttrCache::~ImplFontAttrCache()
{
const OUString rFontFileURL( (*aIter).first );
const ImplDevFontAttributes& rDFA( (*aIter).second );
- write_lenPrefixed_uInt8s_FromOUString<sal_uInt16>(aCacheFile, rFontFileURL, RTL_TEXTENCODING_UTF8);
- write_lenPrefixed_uInt8s_FromOUString<sal_uInt16>(aCacheFile, rDFA.GetFamilyName(), RTL_TEXTENCODING_UTF8);
+ write_uInt16_lenPrefixed_uInt8s_FromOUString(aCacheFile, rFontFileURL, RTL_TEXTENCODING_UTF8);
+ write_uInt16_lenPrefixed_uInt8s_FromOUString(aCacheFile, rDFA.GetFamilyName(), RTL_TEXTENCODING_UTF8);
- aCacheFile << static_cast<short>(rDFA.GetWeight());
- aCacheFile << static_cast<short>(rDFA.GetSlant());
- aCacheFile << static_cast<short>(rDFA.GetPitch());
- aCacheFile << static_cast<short>(rDFA.GetWidthType());
- aCacheFile << static_cast<short>(rDFA.GetFamilyType());
- aCacheFile << static_cast<short>(rDFA.IsSymbolFont() != false);
+ aCacheFile.WriteInt16(rDFA.GetWeight());
+ aCacheFile.WriteInt16(rDFA.GetSlant());
+ aCacheFile.WriteInt16(rDFA.GetPitch());
+ aCacheFile.WriteInt16(rDFA.GetWidthType());
+ aCacheFile.WriteInt16(rDFA.GetFamilyType());
+ aCacheFile.WriteInt16(rDFA.IsSymbolFont() != false);
- write_lenPrefixed_uInt8s_FromOUString<sal_uInt16>(aCacheFile, rDFA.GetStyleName(), RTL_TEXTENCODING_UTF8);
+ write_uInt16_lenPrefixed_uInt8s_FromOUString(aCacheFile, rDFA.GetStyleName(), RTL_TEXTENCODING_UTF8);
++aIter;
}
// EOF Marker
- write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(aCacheFile, OString());
+ write_uInt16_lenPrefixed_uInt8s_FromOString(aCacheFile, OString());
}
}
}