diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-21 13:33:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-21 13:44:52 +0000 |
commit | c1d49234e5e8e7faa84f4d118500a138decfb04e (patch) | |
tree | 9a320b5f4e1bbe62b83326ee075674764393e979 /idl/source | |
parent | 5c24789ca33d7b2b0c39626208cf0708fb470d95 (diff) |
tweak for pre language-defect #77
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/objects/bastype.cxx | 8 | ||||
-rw-r--r-- | idl/source/objects/module.cxx | 12 | ||||
-rw-r--r-- | idl/source/objects/object.cxx | 4 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 8 |
4 files changed, 16 insertions, 16 deletions
diff --git a/idl/source/objects/bastype.cxx b/idl/source/objects/bastype.cxx index afeb0046730d..365d5f3ba910 100644 --- a/idl/source/objects/bastype.cxx +++ b/idl/source/objects/bastype.cxx @@ -228,13 +228,13 @@ sal_Bool SvIdentifier::WriteSvIdl( SvStringHashEntry * pName, SvStream& operator << (SvStream & rStm, const SvIdentifier & r ) { - write_lenPrefixed_uInt8s_FromOString(rStm, r); + write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, r); return rStm; } SvStream& operator >> (SvStream & rStm, SvIdentifier & r ) { - r = read_lenPrefixed_uInt8s_ToOString(rStm); + r = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); return rStm; } @@ -343,13 +343,13 @@ sal_Bool SvString::WriteSvIdl( SvStringHashEntry * pName, SvStream & rOutStm, SvStream& operator << (SvStream & rStm, const SvString & r ) { - write_lenPrefixed_uInt8s_FromOString(rStm, r); + write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, r); return rStm; } SvStream& operator >> (SvStream & rStm, SvString & r ) { - r = read_lenPrefixed_uInt8s_ToOString(rStm); + r = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); return rStm; } diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx index e8e6542eb1b0..8766f105a201 100644 --- a/idl/source/objects/module.cxx +++ b/idl/source/objects/module.cxx @@ -66,9 +66,9 @@ void SvMetaModule::Load( SvPersistStream & rStm ) rStm >> aAttrList; // browser rStm.ReadUniOrByteString( aIdlFileName, rStm.GetStreamCharSet() ); - aHelpFileName = read_lenPrefixed_uInt8s_ToOString(rStm); - aSlotIdFile = read_lenPrefixed_uInt8s_ToOString(rStm); - aModulePrefix = read_lenPrefixed_uInt8s_ToOString(rStm); + aHelpFileName = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); + aSlotIdFile = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); + aModulePrefix = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); // read compiler data sal_uInt16 nCmpLen; @@ -91,9 +91,9 @@ void SvMetaModule::Save( SvPersistStream & rStm ) rStm << aAttrList; // browser rStm.WriteUniOrByteString( aIdlFileName, rStm.GetStreamCharSet() ); - write_lenPrefixed_uInt8s_FromOString(rStm, aHelpFileName); - write_lenPrefixed_uInt8s_FromOString(rStm, aSlotIdFile); - write_lenPrefixed_uInt8s_FromOString(rStm, aModulePrefix); + write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, aHelpFileName); + write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, aSlotIdFile); + write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, aModulePrefix); // write compiler data sal_uInt16 nCmpLen = 0; diff --git a/idl/source/objects/object.cxx b/idl/source/objects/object.cxx index 798acbc1e180..9388843dc7cf 100644 --- a/idl/source/objects/object.cxx +++ b/idl/source/objects/object.cxx @@ -55,7 +55,7 @@ void SvClassElement::Load( SvPersistStream & rStm ) return; } if( nMask & 0x01 ) rStm >> aAutomation; - if( nMask & 0x02 ) aPrefix = read_lenPrefixed_uInt8s_ToOString(rStm); + if( nMask & 0x02 ) aPrefix = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); if( nMask & 0x04 ) { SvMetaClass * p; @@ -75,7 +75,7 @@ void SvClassElement::Save( SvPersistStream & rStm ) // write data rStm << nMask; if( nMask & 0x01 ) rStm << aAutomation; - if( nMask & 0x02 ) write_lenPrefixed_uInt8s_FromOString(rStm, aPrefix); + if( nMask & 0x02 ) write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, aPrefix); if( nMask & 0x04 ) rStm << xClass; } diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index f2488aa0498b..1063baa6ccc0 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -1780,7 +1780,7 @@ void SvMetaEnumValue::Load( SvPersistStream & rStm ) OSL_FAIL( "wrong format" ); return; } - if( nMask & 0x01 ) aEnumValue = read_lenPrefixed_uInt8s_ToOString(rStm); + if( nMask & 0x01 ) aEnumValue = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); } void SvMetaEnumValue::Save( SvPersistStream & rStm ) @@ -1793,7 +1793,7 @@ void SvMetaEnumValue::Save( SvPersistStream & rStm ) // write data rStm << nMask; - if( nMask & 0x01 ) write_lenPrefixed_uInt8s_FromOString(rStm, aEnumValue); + if( nMask & 0x01 ) write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, aEnumValue); } sal_Bool SvMetaEnumValue::ReadSvIdl( SvIdlDataBase & rBase, @@ -1837,7 +1837,7 @@ void SvMetaTypeEnum::Load( SvPersistStream & rStm ) return; } if( nMask & 0x01 ) rStm >> aEnumValueList; - if( nMask & 0x02 ) aPrefix = read_lenPrefixed_uInt8s_ToOString(rStm); + if( nMask & 0x02 ) aPrefix = read_lenPrefixed_uInt8s_ToOString<sal_uInt16>(rStm); } void SvMetaTypeEnum::Save( SvPersistStream & rStm ) @@ -1852,7 +1852,7 @@ void SvMetaTypeEnum::Save( SvPersistStream & rStm ) // write data rStm << nMask; if( nMask & 0x01 ) rStm << aEnumValueList; - if( nMask & 0x02 ) write_lenPrefixed_uInt8s_FromOString(rStm, aPrefix); + if( nMask & 0x02 ) write_lenPrefixed_uInt8s_FromOString<sal_uInt16>(rStm, aPrefix); } void SvMetaTypeEnum::ReadContextSvIdl( SvIdlDataBase & rBase, |