summaryrefslogtreecommitdiff
path: root/sd/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-07 09:28:42 +0200
committerNoel Grandin <noel@peralex.com>2015-01-07 11:20:44 +0200
commit7f8f277b94704a289fbbd1b836e4e5d66311580d (patch)
tree2400b7306a0a2a3ea63aee2e5bfc336b52102635 /sd/inc
parent8db77209e0755d21d9efc34f70a2978d1df5d2c6 (diff)
fdo#84938: convert STREAM_ #defines to 'enum class'
Change-Id: Ibbf14c7e9a5c1883c1311d4c86f948f74f8e473e
Diffstat (limited to 'sd/inc')
-rw-r--r--sd/inc/sdiocmpt.hxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/sd/inc/sdiocmpt.hxx b/sd/inc/sdiocmpt.hxx
index 7775d1757b24..cc18b4a0265f 100644
--- a/sd/inc/sdiocmpt.hxx
+++ b/sd/inc/sdiocmpt.hxx
@@ -22,15 +22,13 @@
#include <tools/stream.hxx>
-class SvStream;
-
class old_SdrDownCompat
{
protected:
SvStream& rStream;
- sal_uInt32 nSubRecSiz;
- sal_uInt32 nSubRecPos;
- sal_uInt16 nMode;
+ sal_uInt32 nSubRecSiz;
+ sal_uInt32 nSubRecPos;
+ StreamMode nMode;
bool bOpen;
protected:
@@ -38,7 +36,7 @@ protected:
void Write();
public:
- old_SdrDownCompat(SvStream& rNewStream, sal_uInt16 nNewMode);
+ old_SdrDownCompat(SvStream& rNewStream, StreamMode nNewMode);
~old_SdrDownCompat();
void OpenSubRecord();
void CloseSubRecord();
@@ -54,9 +52,9 @@ private:
sal_uInt16 nVersion;
public:
- // nNewMode: STREAM_READ or STREAM_WRITE
+ // nNewMode: StreamMode::READ or StreamMode::WRITE
// nVer: specify only when writing
- SdIOCompat(SvStream& rNewStream, sal_uInt16 nNewMode,
+ SdIOCompat(SvStream& rNewStream, StreamMode nNewMode,
sal_uInt16 nVer = SDIOCOMPAT_VERSIONDONTKNOW);
~SdIOCompat();
sal_uInt16 GetVersion() const { return nVersion; }