summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-30 15:03:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-30 17:51:29 +0200
commitdff61f82c02b487fe3a81d457f9bdf672c33db09 (patch)
tree0b6845e4204f233abb0888e4df5a26ca511354d1 /sal
parent891d0b077f380fdd8adf554613c5b03090f8120f (diff)
Get rid of some auto_ptr
Change-Id: Icd477e433f0c294c823c64147d49fb4ac6bfb447
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/osl/file/osl_File.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx
index 8312ec357d29..557cfbdf18ed 100644
--- a/sal/qa/osl/file/osl_File.cxx
+++ b/sal/qa/osl/file/osl_File.cxx
@@ -339,7 +339,6 @@ inline bool checkDirectory( const ::rtl::OUString & str, oslCheckMode nCheckMode
FileBase::RC rc;
bool bCheckResult= false;
- //::std::auto_ptr<Directory> pDir( new Directory( str ) );
Directory aDir( str );
rc = aDir.open();
@@ -1257,12 +1256,12 @@ namespace osl_FileStatus
createTestDirectory( aTmpName3 );
createTestFile( aTmpName4 );
- ::std::auto_ptr<Directory> pDir( new Directory( aTmpName3 ) );
- nError1 = pDir->open();
+ Directory pDir( aTmpName3 );
+ nError1 = pDir.open();
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
- nError1 = pDir->getNextItem( rItem, 0 );
+ nError1 = pDir.getNextItem( rItem, 0 );
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
- pDir->close();
+ pDir.close();
/*
Directory aDir( aTmpName3 );
nError1 = aDir.open();
@@ -1332,7 +1331,6 @@ namespace osl_FileStatus
createTestFile( aTmpName4 );
pDir = new Directory( aTmpName3 );
- //::std::auto_ptr<Directory> pDir( new Directory( aTmpName3 ) );
::osl::FileBase::RC nError1 = pDir->open();
CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 );
nError1 = pDir->getNextItem( rItem_file, 1 );