diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-06 12:44:59 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-02-12 15:32:11 +0000 |
commit | b2878af3223c438abeecc77d9976e56db31a5b49 (patch) | |
tree | 74ccf2cfdbec9093671eb98cb58dfe57f27461f1 /idl | |
parent | 15535e32ddcfee451d4dbc9be9de0b8c9f9d78d4 (diff) |
more SvStream:operator>> conversion
Convert the template based read_lenPrefixed methods to regular
methods.
Change-Id: Ifd0e93aca055e55a0575e4377ec2b8e266dfb019
Reviewed-on: https://gerrit.libreoffice.org/7895
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/objects/bastype.cxx | 4 | ||||
-rw-r--r-- | idl/source/objects/module.cxx | 6 | ||||
-rw-r--r-- | idl/source/objects/object.cxx | 2 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx index 40ae0ddd68ce..5c1bb40b9652 100644 --- a/idl/source/objects/bastype.cxx +++ b/idl/source/objects/bastype.cxx @@ -220,7 +220,7 @@ SvStream& WriteSvIdentifier(SvStream & rStm, const SvIdentifier & r ) SvStream& operator >> (SvStream & rStm, SvIdentifier & r ) { - r.setString(read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm)); + r.setString(read_uInt16_lenPrefixed_uInt8s_ToOString(rStm)); return rStm; } @@ -333,7 +333,7 @@ SvStream& WriteSvString(SvStream & rStm, const SvString & r ) SvStream& operator >> (SvStream & rStm, SvString & r ) { - r.setString(read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm)); + r.setString(read_uInt16_lenPrefixed_uInt8s_ToOString(rStm)); return rStm; } diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx index 170053a857ed..2d3b9c5c7075 100644 --- a/idl/source/objects/module.cxx +++ b/idl/source/objects/module.cxx @@ -57,9 +57,9 @@ void SvMetaModule::Load( SvPersistStream & rStm ) rStm >> aAttrList; // browser aIdlFileName = rStm.ReadUniOrByteString( rStm.GetStreamCharSet() ); - aHelpFileName.setString(read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm)); - aSlotIdFile.setString(read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm)); - aModulePrefix.setString(read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm)); + aHelpFileName.setString(read_uInt16_lenPrefixed_uInt8s_ToOString(rStm)); + aSlotIdFile.setString(read_uInt16_lenPrefixed_uInt8s_ToOString(rStm)); + aModulePrefix.setString(read_uInt16_lenPrefixed_uInt8s_ToOString(rStm)); // read compiler data sal_uInt16 nCmpLen; diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx index 55592dc6ee54..606e48ca6818 100644 --- a/idl/source/objects/object.cxx +++ b/idl/source/objects/object.cxx @@ -44,7 +44,7 @@ void SvClassElement::Load( SvPersistStream & rStm ) return; } if( nMask & 0x01 ) rStm >> aAutomation; - if( nMask & 0x02 ) aPrefix = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); + if( nMask & 0x02 ) aPrefix = read_uInt16_lenPrefixed_uInt8s_ToOString(rStm); if( nMask & 0x04 ) { SvMetaClass * p; diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index b964f0f7ad54..c7a69a9ad176 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -1772,7 +1772,7 @@ void SvMetaEnumValue::Load( SvPersistStream & rStm ) OSL_FAIL( "wrong format" ); return; } - if( nMask & 0x01 ) aEnumValue = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); + if( nMask & 0x01 ) aEnumValue = read_uInt16_lenPrefixed_uInt8s_ToOString(rStm); } void SvMetaEnumValue::Save( SvPersistStream & rStm ) @@ -1829,7 +1829,7 @@ void SvMetaTypeEnum::Load( SvPersistStream & rStm ) return; } if( nMask & 0x01 ) rStm >> aEnumValueList; - if( nMask & 0x02 ) aPrefix = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); + if( nMask & 0x02 ) aPrefix = read_uInt16_lenPrefixed_uInt8s_ToOString(rStm); } void SvMetaTypeEnum::Save( SvPersistStream & rStm ) |