diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2017-08-18 12:06:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-19 19:53:23 +0200 |
commit | e62a8f333332688203867fdddbc8ffa89a657b9f (patch) | |
tree | 8eb2b3ffdd17e92f70e5dca2ef0668c58b26ecfd /svl/source/inc/poolio.hxx | |
parent | e947d11753e8d3a13a251ec99ce7129099dca1a1 (diff) |
svl: refactor string stream helpers
functions were declared twice, in stringio.hxx and poolio.hxx.
remove unicode functions as they were unused.
remove duplicate function declarations in poolio.hxx.
move implementations from poolio.cxx to new stringio.cxx.
Change-Id: I469346a01d793d22721e62bf7e96fd01e28d560c
Reviewed-on: https://gerrit.libreoffice.org/41331
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/inc/poolio.hxx')
-rw-r--r-- | svl/source/inc/poolio.hxx | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/svl/source/inc/poolio.hxx b/svl/source/inc/poolio.hxx index 8695dfe8b69e..65ceb1680ec7 100644 --- a/svl/source/inc/poolio.hxx +++ b/svl/source/inc/poolio.hxx @@ -20,12 +20,12 @@ #ifndef INCLUDED_SVL_SOURCE_INC_POOLIO_HXX #define INCLUDED_SVL_SOURCE_INC_POOLIO_HXX +#include <svl/itempool.hxx> #include <svl/SfxBroadcaster.hxx> #include <deque> #include <memory> #include <unordered_map> #include <vector> -#include <tools/stream.hxx> class SfxPoolItem; class SfxItemPoolUser; @@ -140,48 +140,6 @@ struct SfxItemPool_Impl #define SFX_ITEMPOOL_REC_ITEMS sal_uInt16(0x0040) #define SFX_ITEMPOOL_REC_DEFAULTS sal_uInt16(0x0050) - -/** Read in a Unicode string from a streamed byte string representation. - - @param rStream Some (input) stream. Its Stream/TargetCharSets must - be set to correct values! - - @return On success, returns the reconstructed Unicode string. - */ -OUString readByteString(SvStream & rStream); - -/** Write a byte string representation of a Unicode string into a stream. - - @param rStream Some (output) stream. Its Stream/TargetCharSets must - be set to correct values! - - @param rString Some Unicode string. - */ -void writeByteString(SvStream & rStream, const OUString& rString); - -/** Read in a Unicode string from either a streamed Unicode or byte string - representation. - - @param rStream Some (input) stream. If bUnicode is false, its - Stream/TargetCharSets must be set to correct values! - - @param bUnicode Whether to read in a stream Unicode (true) or byte - string (false) representation. - - @return On success, returns the reconstructed Unicode string. - */ -OUString readUnicodeString(SvStream & rStream, bool bUnicode); - -/** Write a Unicode string representation of a Unicode string into a - stream. - - @param rStream Some (output) stream. - - @param rString Some Unicode string. - */ -void writeUnicodeString(SvStream & rStream, const OUString& rString); - - #endif // INCLUDED_SVL_SOURCE_INC_POOLIO_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |