summaryrefslogtreecommitdiff
path: root/svl/source/items/macitem.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-22 13:47:46 +0200
committerNoel Grandin <noel@peralex.com>2014-07-23 13:26:18 +0200
commite72ddca6a00b2f86f58869db9f688c37d9072bda (patch)
treecce5c4ffedb3975eaf48c648d5eb93c27519ecac /svl/source/items/macitem.cxx
parent8497efb425d901257464a03e7c5faa3f1bbea9fe (diff)
move string IO methods out of global header
and into a module-local header. It's not like the methods have any actual relationship with the SfxPoolItem class. Change-Id: I1378364a1554642333b0c5c79d869d719b53fa0c
Diffstat (limited to 'svl/source/items/macitem.cxx')
-rw-r--r--svl/source/items/macitem.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/svl/source/items/macitem.cxx b/svl/source/items/macitem.cxx
index ca0eb4205d47..ecdfa9fa5159 100644
--- a/svl/source/items/macitem.cxx
+++ b/svl/source/items/macitem.cxx
@@ -20,6 +20,7 @@
#include <tools/stream.hxx>
#include <svl/macitem.hxx>
+#include <stringio.hxx>
TYPEINIT1_FACTORY(SvxMacroItem, SfxPoolItem, new SvxMacroItem(0));
@@ -107,8 +108,8 @@ SvStream& SvxMacroTableDtor::Read( SvStream& rStrm, sal_uInt16 nVersion )
sal_uInt16 nCurKey, eType = STARBASIC;
OUString aLibName, aMacName;
rStrm.ReadUInt16( nCurKey );
- aLibName = SfxPoolItem::readByteString(rStrm);
- aMacName = SfxPoolItem::readByteString(rStrm);
+ aLibName = readByteString(rStrm);
+ aMacName = readByteString(rStrm);
if( SVX_MACROTBL_VERSION40 <= nVersion )
rStrm.ReadUInt16( eType );
@@ -135,8 +136,8 @@ SvStream& SvxMacroTableDtor::Write( SvStream& rStream ) const
{
const SvxMacro& rMac = it->second;
rStream.WriteUInt16( it->first );
- SfxPoolItem::writeByteString(rStream, rMac.GetLibName());
- SfxPoolItem::writeByteString(rStream, rMac.GetMacName());
+ writeByteString(rStream, rMac.GetLibName());
+ writeByteString(rStream, rMac.GetMacName());
if( SVX_MACROTBL_VERSION40 <= nVersion )
rStream.WriteUInt16( (sal_uInt16)rMac.GetScriptType() );