diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:00:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:24 +0100 |
commit | bd4053f895167978978023309925c85c3826b31a (patch) | |
tree | d55fee87747210eea35e901d7f78d33346972172 /sal/qa | |
parent | cc2606a785bf1a57623b8c58e7388112279f6b9e (diff) |
bool improvements
Change-Id: I7ae2b02e435d21390843c6c56877a8ce3a73f9f2
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 4 | ||||
-rw-r--r-- | sal/qa/osl/module/osl_Module.cxx | 8 | ||||
-rw-r--r-- | sal/qa/osl/mutex/osl_Mutex.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/process/osl_Thread.cxx | 2 | ||||
-rw-r--r-- | sal/qa/osl/security/osl_Security.cxx | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index 2d9192f333bb..b682500bbf59 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -2586,7 +2586,7 @@ namespace osl_FileStatus ::osl::FileBase::RC nError1 = testDirectory.open(); ::rtl::OUString aFileName ("link.file"); sal_Bool bOk = sal_False; - while (1) { + while (true) { nError1 = testDirectory.getNextItem( rItem_link, 4 ); if (::osl::FileBase::E_None == nError1) { sal_uInt32 mask_link = osl_FileStatus_Mask_FileName | osl_FileStatus_Mask_LinkTargetURL; @@ -5638,7 +5638,7 @@ namespace osl_Directory CPPUNIT_ASSERT( ::osl::FileBase::E_None == nError1 ); ::rtl::OUString aFileName ("link.file"); - while (1) { + while (true) { nError1 = testDirectory.getNextItem( rItem, 4 ); if (::osl::FileBase::E_None == nError1) { ::osl::FileStatus rFileStatus( osl_FileStatus_Mask_FileName | osl_FileStatus_Mask_Type ); diff --git a/sal/qa/osl/module/osl_Module.cxx b/sal/qa/osl/module/osl_Module.cxx index a5de11aacbfa..c11df5dccb81 100644 --- a/sal/qa/osl/module/osl_Module.cxx +++ b/sal/qa/osl/module/osl_Module.cxx @@ -189,7 +189,7 @@ namespace osl_Module if ( !( bRes ) ) { - CPPUNIT_ASSERT_MESSAGE("Cannot locate current module.", sal_False ); + CPPUNIT_ASSERT_MESSAGE("Cannot locate current module.", false ); } ::osl::Module aMod( aFileURL ); @@ -221,7 +221,7 @@ namespace osl_Module bRes = osl::Module::getUrlFromAddress( ( void* ) &::osl_Module::testClass::myFunc, aFileURL ) ; if ( !( bRes ) ) { - CPPUNIT_ASSERT_MESSAGE("Cannot locate current module.", sal_False ); + CPPUNIT_ASSERT_MESSAGE("Cannot locate current module.", false ); } CPPUNIT_ASSERT_MESSAGE( "#test comment#: test get Module URL from address.", @@ -239,7 +239,7 @@ namespace osl_Module bRes = osl::Module::getUrlFromAddress( ( void* )pFunc, aFileURL ); if ( !( bRes ) ) { - CPPUNIT_ASSERT_MESSAGE("Cannot locate current module.", sal_False ); + CPPUNIT_ASSERT_MESSAGE("Cannot locate current module.", false ); } aMod.unload( ); @@ -325,7 +325,7 @@ namespace osl_Module bRes = osl::Module::getUrlFromAddress( ( void* ) &::osl_Module::testClass::myFunc, aFileURL ); if ( !( bRes ) ) { - CPPUNIT_ASSERT_MESSAGE("Cannot locate current module - using executable instead", sal_False ); + CPPUNIT_ASSERT_MESSAGE("Cannot locate current module - using executable instead", false ); } ::osl::Module aMod; diff --git a/sal/qa/osl/mutex/osl_Mutex.cxx b/sal/qa/osl/mutex/osl_Mutex.cxx index 6eafeed26fd4..c4df983ca7fd 100644 --- a/sal/qa/osl/mutex/osl_Mutex.cxx +++ b/sal/qa/osl/mutex/osl_Mutex.cxx @@ -732,7 +732,7 @@ namespace osl_ClearableGuard // wait 1 second to assure the child thread has begun ThreadHelper::thread_sleep(1); - while (1) + while (true) { if (aMutex.tryToAcquire()) { diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx index b27e187eff5c..6874751292ca 100644 --- a/sal/qa/osl/process/osl_Thread.cxx +++ b/sal/qa/osl/process/osl_Thread.cxx @@ -626,7 +626,7 @@ namespace osl_Thread void suspendCountThread(OCountThread* _pCountThread) { sal_Int32 nValue = 0; - while (1) + while (true) { nValue = _pCountThread->getValue(); if (nValue >= 3) diff --git a/sal/qa/osl/security/osl_Security.cxx b/sal/qa/osl/security/osl_Security.cxx index 0d7fd4e9b5ca..b7befbcee48b 100644 --- a/sal/qa/osl/security/osl_Security.cxx +++ b/sal/qa/osl/security/osl_Security.cxx @@ -280,7 +280,7 @@ namespace osl_Security { ::osl::Security aSec; osl_unloadUserProfile(aSec.getHandle()); - CPPUNIT_ASSERT_MESSAGE( "empty function.", sal_True ); + CPPUNIT_ASSERT_MESSAGE( "empty function.", true ); } CPPUNIT_TEST_SUITE( UserProfile ); |