Remove needless typedef from basic/qa/cppunit/basic_coverage.cxx

Change-Id: Iba1c48d58daa618107ad84240d613f675d447aad
Reviewed-on: https://gerrit.libreoffice.org/24175
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Ryan McCoskrie
2016-04-17 21:46:56 +12:00
committed by Noel Grandin
parent 98b6e3875b
commit 666dc67eaf

View File

@@ -20,7 +20,6 @@ namespace
class Coverage : public test::BootstrapFixture
{
private:
typedef std::vector< OUString > StringVec;
int m_nb_tests_ok;
int m_nb_tests_skipped;
OUString m_sCurrentTest;
@@ -28,7 +27,7 @@ private:
void run_test(const OUString& sFileName);
void test_failed();
void test_success();
StringVec get_subdirnames( const OUString& sDirName );
std::vector< OUString > get_subdirnames( const OUString& sDirName );
public:
Coverage();
@@ -95,9 +94,9 @@ void Coverage::run_test(const OUString& sFileURL)
}
}
Coverage::StringVec Coverage::get_subdirnames( const OUString& sDirName )
std::vector< OUString > Coverage::get_subdirnames( const OUString& sDirName )
{
Coverage::StringVec sSubDirNames;
std::vector< OUString > sSubDirNames;
osl::Directory aDir(sDirName);
osl::DirectoryItem aItem;
osl::FileStatus aFileStatus(osl_FileStatus_Mask_FileURL|osl_FileStatus_Mask_Type);
@@ -142,9 +141,9 @@ void Coverage::Coverage_Iterator()
CPPUNIT_ASSERT(!sDirName.isEmpty());
process_directory(sDirName); // any files in the root test dir are run in test harness default locale ( en-US )
Coverage::StringVec sLangDirs = get_subdirnames( sDirName );
std::vector< OUString > sLangDirs = get_subdirnames( sDirName );
for ( Coverage::StringVec::iterator it = sLangDirs.begin(), it_end = sLangDirs.end(); it != it_end; ++it )
for ( std::vector< OUString >::iterator it = sLangDirs.begin(), it_end = sLangDirs.end(); it != it_end; ++it )
{
OUString sDir( *it );
sal_Int32 nSlash = (*it).lastIndexOf('/');