diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-06 16:38:01 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-07 11:05:04 +0200 |
commit | 0241519f323b2b29db747467b8c3d9590c33f0df (patch) | |
tree | de5e98992f8db0ed8d23f1ff8d972113700295fd /sot | |
parent | dc47b2e5136f0f767273dc5fdba5c822575e194b (diff) |
Unwind SotStorageStreamRef typedef
Change-Id: If7652a7c0251b741660365848a717c06954ca419
Diffstat (limited to 'sot')
-rw-r--r-- | sot/qa/cppunit/test_sot.cxx | 6 | ||||
-rw-r--r-- | sot/workben/testsot.cxx | 2 |
2 files changed, 4 insertions, 4 deletions
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<SotStorageStream> 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<SotStorageStream> 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<SotStorage> xObjStor = new SotStorage(aStream); CPPUNIT_ASSERT_MESSAGE("sot storage failed to open", xObjStor.Is() && !xObjStor->GetError()); - SotStorageStreamRef xStream = xObjStor->OpenSotStream("Book"); + tools::SvRef<SotStorageStream> 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<SotStorage> xStor = new SotStorage( "c:\\temp\\video.sdb" ); tools::SvRef<SotStorage> x2Stor = xStor->OpenSotStorage( "1117" ); - SotStorageStreamRef xStm = x2Stor->OpenSotStream( "Genres", STREAM_STD_READWRITE | StreamMode::TRUNC); + tools::SvRef<SotStorageStream> xStm = x2Stor->OpenSotStream( "Genres", STREAM_STD_READWRITE | StreamMode::TRUNC); //BYTE szData[100]; //xStm->Write( szData, 100 ); UINT32 nSize = xStm->GetSize(); |