From 006e59a25e6396b05cf6da39c94a3a7a5c48eeb3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 7 Jan 2015 11:47:47 +0200 Subject: fix windows build and a handful of other currently uncompiled spots, after my commit 7f8f277b94704a289fbbd1b836e4e5d66311580d "fdo#84938: convert STREAM_ #defines to 'enum class'" Change-Id: I550f6fb850e1d71a6f08767eeb222a18071b89d5 --- sot/source/sdstor/stg.cxx | 2 +- sot/workben/testsot.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx index 1d6c22255242..a199f2e7989b 100644 --- a/sot/source/sdstor/stg.cxx +++ b/sot/source/sdstor/stg.cxx @@ -34,7 +34,7 @@ static long nTmpCount = 0; -// The internal open mode is StreamMode::READ | STREAM_TRUNC, which is silly +// The internal open mode is StreamMode::READ | StreamMode::TRUNC, which is silly // by itself. It inhibits the checking of sharing modes and is used // during CopyTo() and MoveTo() for opening a stream in read mode // although it may be open in DENYALL mode diff --git a/sot/workben/testsot.cxx b/sot/workben/testsot.cxx index a674b4ee2ef6..1d6185bbe867 100644 --- a/sot/workben/testsot.cxx +++ b/sot/workben/testsot.cxx @@ -31,7 +31,7 @@ int main (int argc, sal_Char **argv) SotStorageRef xStor = new SotStorage( "c:\\temp\\video.sdb" ); SotStorageRef x2Stor = xStor->OpenSotStorage( "1117" ); - SotStorageStreamRef xStm = x2Stor->OpenSotStream( "Genres", STREAM_STD_READWRITE | STREAM_TRUNC); + SotStorageStreamRef xStm = x2Stor->OpenSotStream( "Genres", STREAM_STD_READWRITE | StreamMode::TRUNC); //BYTE szData[100]; //xStm->Write( szData, 100 ); UINT32 nSize = xStm->GetSize(); -- cgit