From 0241519f323b2b29db747467b8c3d9590c33f0df Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 6 May 2015 16:38:01 +0200 Subject: Unwind SotStorageStreamRef typedef Change-Id: If7652a7c0251b741660365848a717c06954ca419 --- sot/qa/cppunit/test_sot.cxx | 6 +++--- sot/workben/testsot.cxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sot') diff --git a/sot/qa/cppunit/test_sot.cxx b/sot/qa/cppunit/test_sot.cxx index 194560504d79..f3c55157e147 100644 --- a/sot/qa/cppunit/test_sot.cxx +++ b/sot/qa/cppunit/test_sot.cxx @@ -54,7 +54,7 @@ namespace return true; { // Read the data in one block - SotStorageStreamRef xStream( xObjStor->OpenSotStream( rStreamName ) ); + tools::SvRef xStream( xObjStor->OpenSotStream( rStreamName ) ); xStream->Seek(0); sal_uLong nRemaining = xStream->GetSize() - xStream->Tell(); @@ -66,7 +66,7 @@ namespace // fprintf(stderr, "readable size %d vs size %d remaining %d\n", nReadableSize, nSize, nReadableSize); } { // Read the data backwards as well - SotStorageStreamRef xStream( xObjStor->OpenSotStream( rStreamName ) ); + tools::SvRef xStream( xObjStor->OpenSotStream( rStreamName ) ); for( sal_uLong i = nReadableSize; i > 0; i-- ) { CPPUNIT_ASSERT_MESSAGE( "sot reading error", !xStream->GetError() ); @@ -129,7 +129,7 @@ namespace tools::SvRef xObjStor = new SotStorage(aStream); CPPUNIT_ASSERT_MESSAGE("sot storage failed to open", xObjStor.Is() && !xObjStor->GetError()); - SotStorageStreamRef xStream = xObjStor->OpenSotStream("Book"); + tools::SvRef xStream = xObjStor->OpenSotStream("Book"); CPPUNIT_ASSERT_MESSAGE("stream failed to open", xStream.Is() && !xObjStor->GetError()); CPPUNIT_ASSERT_MESSAGE("error in opened stream", !xStream->GetError()); diff --git a/sot/workben/testsot.cxx b/sot/workben/testsot.cxx index 19a42b12907c..9e7c14670bfc 100644 --- a/sot/workben/testsot.cxx +++ b/sot/workben/testsot.cxx @@ -31,7 +31,7 @@ int main (int argc, sal_Char **argv) tools::SvRef xStor = new SotStorage( "c:\\temp\\video.sdb" ); tools::SvRef x2Stor = xStor->OpenSotStorage( "1117" ); - SotStorageStreamRef xStm = x2Stor->OpenSotStream( "Genres", STREAM_STD_READWRITE | StreamMode::TRUNC); + tools::SvRef xStm = x2Stor->OpenSotStream( "Genres", STREAM_STD_READWRITE | StreamMode::TRUNC); //BYTE szData[100]; //xStm->Write( szData, 100 ); UINT32 nSize = xStm->GetSize(); -- cgit