diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-01-28 23:41:52 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-01-29 15:39:11 +0100 |
commit | 9c03e3097f59f57b60780ab8b2791ca08ddc4192 (patch) | |
tree | c357e31d5d5a7040a269f32483a9672c93711862 | |
parent | Remove double line spacing and correct indentation (diff) | |
download | core-9c03e3097f59f57b60780ab8b2791ca08ddc4192.tar.gz core-9c03e3097f59f57b60780ab8b2791ca08ddc4192.zip |
cppcheck: remove unused variable strLen.
-rw-r--r-- | sal/osl/w32/profile.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx index b2f10a330320..54b92684c31a 100644 --- a/sal/osl/w32/profile.cxx +++ b/sal/osl/w32/profile.cxx @@ -1503,10 +1503,6 @@ static sal_Bool putLine(osl_TFile* pFile, const sal_Char *pszLine) { unsigned int Len = strlen(pszLine); -#ifdef DEBUG_OSL_PROFILE - int strLen=0; -#endif - if ( pFile == 0 || pFile->m_Handle < 0 ) { return (sal_False); @@ -1539,19 +1535,13 @@ static sal_Bool putLine(osl_TFile* pFile, const sal_Char *pszLine) memcpy(pFile->m_pWriteBuf + ( pFile->m_nWriteBufLen - pFile->m_nWriteBufFree ),pszLine,Len+1); -#ifdef DEBUG_OSL_PROFILE - strLen = strlen(pFile->m_pWriteBuf); -#endif + pFile->m_pWriteBuf[pFile->m_nWriteBufLen - pFile->m_nWriteBufFree + Len]='\r'; pFile->m_pWriteBuf[pFile->m_nWriteBufLen - pFile->m_nWriteBufFree + Len + 1]='\n'; pFile->m_pWriteBuf[pFile->m_nWriteBufLen - pFile->m_nWriteBufFree + Len + 2]='\0'; pFile->m_nWriteBufFree-=Len+2; -#ifdef DEBUG_OSL_PROFILE -/* OSL_TRACE("File Buffer in _putLine '%s' '%i'(%i)\n",pFile->m_pWriteBuf,strlen(pFile->m_pWriteBuf),pFile->m_nWriteBufLen - pFile->m_nWriteBufFree);*/ -#endif - return (sal_True); } |