summaryrefslogtreecommitdiff
path: root/writerperfect/source/common
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-08-27 10:18:06 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-27 12:06:15 +0000
commit33b38082ca63813f7c478945be198cc504efde4b (patch)
tree030eb240e231d855e477d985c3edc36304dd2914 /writerperfect/source/common
parent81a7aeb0806298c7a8571a46e09f485f3cf5ea13 (diff)
put StreamMode masks in scope of enum class
Change-Id: I77682f7e289a59b986bb84edf014029a20266470 Reviewed-on: https://gerrit.libreoffice.org/28420 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'writerperfect/source/common')
-rw-r--r--writerperfect/source/common/WPXSvInputStream.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/writerperfect/source/common/WPXSvInputStream.cxx b/writerperfect/source/common/WPXSvInputStream.cxx
index c5e344850475..d23fc6c77dad 100644
--- a/writerperfect/source/common/WPXSvInputStream.cxx
+++ b/writerperfect/source/common/WPXSvInputStream.cxx
@@ -227,7 +227,7 @@ void OLEStorageImpl::traverse(const tools::SvRef<SotStorage> &rStorage, const rt
{
const rtl::OUString aPath = concatPath(rPath, aIt->GetName());
SotStorageRefWrapper aStorage;
- aStorage.ref = rStorage->OpenSotStorage(aIt->GetName(), STREAM_STD_READ);
+ aStorage.ref = rStorage->OpenSotStorage(aIt->GetName(), StreamMode::STD_READ);
maStorageMap[aPath] = aStorage;
// deep-first traversal
@@ -245,7 +245,7 @@ tools::SvRef<SotStorageStream> OLEStorageImpl::createStream(const rtl::OUString
const sal_Int32 nDelim = rPath.lastIndexOf(sal_Unicode('/'));
if (-1 == nDelim)
- return mxRootStorage.ref->OpenSotStream(rPath, STREAM_STD_READ);
+ return mxRootStorage.ref->OpenSotStream(rPath, StreamMode::STD_READ);
const rtl::OUString aDir = rPath.copy(0, nDelim);
const rtl::OUString aName = rPath.copy(nDelim + 1);
@@ -255,7 +255,7 @@ tools::SvRef<SotStorageStream> OLEStorageImpl::createStream(const rtl::OUString
if (maStorageMap.end() == aIt)
return nullptr;
- return aIt->second.ref->OpenSotStream(aName, STREAM_STD_READ);
+ return aIt->second.ref->OpenSotStream(aName, StreamMode::STD_READ);
}
}