From 7f8f277b94704a289fbbd1b836e4e5d66311580d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 7 Jan 2015 09:28:42 +0200 Subject: fdo#84938: convert STREAM_ #defines to 'enum class' Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e --- include/tools/vcompat.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/tools/vcompat.hxx') diff --git a/include/tools/vcompat.hxx b/include/tools/vcompat.hxx index 2d0412fe6a86..b8dfe7fb8ef3 100644 --- a/include/tools/vcompat.hxx +++ b/include/tools/vcompat.hxx @@ -28,13 +28,14 @@ ((sal_uInt32)(char)(char4))<<24UL)) class SvStream; +enum class StreamMode; class TOOLS_DLLPUBLIC VersionCompat { SvStream* mpRWStm; sal_uInt32 mnCompatPos; sal_uInt32 mnTotalSize; - sal_uInt16 mnStmMode; + StreamMode mnStmMode; sal_uInt16 mnVersion; VersionCompat() {} @@ -44,7 +45,7 @@ class TOOLS_DLLPUBLIC VersionCompat public: - VersionCompat( SvStream& rStm, sal_uInt16 nStreamMode, sal_uInt16 nVersion = 1 ); + VersionCompat( SvStream& rStm, StreamMode nStreamMode, sal_uInt16 nVersion = 1 ); ~VersionCompat(); sal_uInt16 GetVersion() const { return mnVersion; } -- cgit