From 33b38082ca63813f7c478945be198cc504efde4b Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Sat, 27 Aug 2016 10:18:06 +0200 Subject: put StreamMode masks in scope of enum class Change-Id: I77682f7e289a59b986bb84edf014029a20266470 Reviewed-on: https://gerrit.libreoffice.org/28420 Tested-by: Jenkins Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- writerperfect/source/common/WPXSvInputStream.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'writerperfect') 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 &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 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 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); } } -- cgit