Kaydet (Commit) 5ee129fb authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck

Change-Id: Ifec449ea334d9055bb33beb0518ab2e01d885d0d
üst 94f21050
......@@ -371,9 +371,8 @@ GraphiteFaceWrapper * FtFontInfo::GetGraphiteFace()
// test for graphite here so that it is cached most efficiently
if (GetTable("Silf", 0))
{
int graphiteSegCacheSize = 10000;
static const char* pGraphiteCacheStr = getenv( "SAL_GRAPHITE_CACHE_SIZE" );
graphiteSegCacheSize = pGraphiteCacheStr ? (atoi(pGraphiteCacheStr)) : 0;
int graphiteSegCacheSize = pGraphiteCacheStr ? (atoi(pGraphiteCacheStr)) : 0;
gr_face * pGraphiteFace;
if (graphiteSegCacheSize > 500)
pGraphiteFace = gr_make_face_with_seg_cache(this, graphiteFontTable, graphiteSegCacheSize, gr_face_cacheCmap);
......
......@@ -1250,7 +1250,6 @@ bool GenPspGraphics::filterText( const rtl::OUString& rOrig, rtl::OUString& rNew
bool bRet = false;
bool bStarted = false;
bool bStopped = false;
sal_Int32 nPos;
sal_Int32 nStart = 0;
sal_Int32 nStop = rLen;
......@@ -1269,6 +1268,7 @@ bool GenPspGraphics::filterText( const rtl::OUString& rOrig, rtl::OUString& rNew
}
if( m_bPhoneCollectionActive )
{
bool bStopped = false;
bRet = true;
nPos = bStarted ? nStart + FAX_PHONE_TOKEN_LENGTH : 0;
if( ( nPos = aPhone.indexOfAsciiL( FAX_END_TOKEN, FAX_END_TOKEN_LENGTH, nPos ) ) != -1 )
......
......@@ -96,12 +96,11 @@ AppendPS (FILE* pDst, osl::File* pSrc, sal_uChar* pBuffer,
osl::File*
PrinterJob::CreateSpoolFile (const rtl::OUString& rName, const rtl::OUString& rExtension)
{
osl::File::RC nError = osl::File::E_None;
osl::File* pFile = NULL;
rtl::OUString aFile = rName + rExtension;
rtl::OUString aFileURL;
nError = osl::File::getFileURLFromSystemPath( aFile, aFileURL );
osl::File::RC nError = osl::File::getFileURLFromSystemPath( aFile, aFileURL );
if (nError != osl::File::E_None)
return NULL;
aFileURL = maSpoolDirName + rtl::OUString("/") + aFileURL;
......
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