Kaydet (Commit) 8c27bd9b authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning

Change-Id: I1dc8415569f7133d57c495e47f038e98d50d64d7
üst a4547696
...@@ -731,9 +731,7 @@ oslFileError SAL_CALL osl_removeFile( rtl_uString* ustrFileURL ) ...@@ -731,9 +731,7 @@ oslFileError SAL_CALL osl_removeFile( rtl_uString* ustrFileURL )
static oslFileError oslDoMoveFile( const sal_Char* pszPath, const sal_Char* pszDestPath) static oslFileError oslDoMoveFile( const sal_Char* pszPath, const sal_Char* pszDestPath)
{ {
oslFileError tErr=osl_File_E_invalidError; oslFileError tErr = osl_psz_moveFile(pszPath,pszDestPath);
tErr = osl_psz_moveFile(pszPath,pszDestPath);
if ( tErr == osl_File_E_None ) if ( tErr == osl_File_E_None )
{ {
return tErr; return tErr;
......
...@@ -937,11 +937,9 @@ rtl_cache_deactivate ( ...@@ -937,11 +937,9 @@ rtl_cache_deactivate (
rtl_cache_type * cache rtl_cache_type * cache
) )
{ {
int active = 1;
/* remove from cache list */ /* remove from cache list */
RTL_MEMORY_LOCK_ACQUIRE(&(g_cache_list.m_lock)); RTL_MEMORY_LOCK_ACQUIRE(&(g_cache_list.m_lock));
active = QUEUE_STARTED_NAMED(cache, cache_) == 0; int active = QUEUE_STARTED_NAMED(cache, cache_) == 0;
QUEUE_REMOVE_NAMED(cache, cache_); QUEUE_REMOVE_NAMED(cache, cache_);
RTL_MEMORY_LOCK_RELEASE(&(g_cache_list.m_lock)); RTL_MEMORY_LOCK_RELEASE(&(g_cache_list.m_lock));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment