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

Some cppcheck cleaning

Change-Id: I1b80271473166755e8f0afaa7af8ffc7bea394b3
üst 444ae4d0
...@@ -1793,7 +1793,6 @@ void SvxConfigPage::Reset( const SfxItemSet& ) ...@@ -1793,7 +1793,6 @@ void SvxConfigPage::Reset( const SfxItemSet& )
for ( sal_Int32 i = 0; i < aFrameList.getLength(); ++i ) for ( sal_Int32 i = 0; i < aFrameList.getLength(); ++i )
{ {
SaveInData* pData = NULL;
uno::Reference < frame::XFrame > xf = aFrameList[i]; uno::Reference < frame::XFrame > xf = aFrameList[i];
if ( xf.is() && xf != m_xFrame ) if ( xf.is() && xf != m_xFrame )
...@@ -1833,7 +1832,7 @@ void SvxConfigPage::Reset( const SfxItemSet& ) ...@@ -1833,7 +1832,7 @@ void SvxConfigPage::Reset( const SfxItemSet& )
if ( xDocCfgMgr.is() ) if ( xDocCfgMgr.is() )
{ {
pData = CreateSaveInData( xDocCfgMgr, xCfgMgr, aModuleId, sal_True ); SaveInData* pData = CreateSaveInData( xDocCfgMgr, xCfgMgr, aModuleId, sal_True );
if ( pData && !pData->IsReadOnly() ) if ( pData && !pData->IsReadOnly() )
{ {
......
...@@ -53,9 +53,8 @@ namespace drawinglayer ...@@ -53,9 +53,8 @@ namespace drawinglayer
if(nViewVisibleArea > nMaxQuadratPixels) if(nViewVisibleArea > nMaxQuadratPixels)
{ {
double fReduceFactor(1.0);
// reduce render size // reduce render size
fReduceFactor = sqrt((double)nMaxQuadratPixels / (double)nViewVisibleArea); double fReduceFactor = sqrt((double)nMaxQuadratPixels / (double)nViewVisibleArea);
nDiscreteWidth = basegfx::fround((double)nDiscreteWidth * fReduceFactor); nDiscreteWidth = basegfx::fround((double)nDiscreteWidth * fReduceFactor);
nDiscreteHeight = basegfx::fround((double)nDiscreteHeight * fReduceFactor); nDiscreteHeight = basegfx::fround((double)nDiscreteHeight * fReduceFactor);
......
...@@ -844,13 +844,10 @@ void RscFileTab :: DeleteFileContext( sal_uLong lFileKey ){ ...@@ -844,13 +844,10 @@ void RscFileTab :: DeleteFileContext( sal_uLong lFileKey ){
*************************************************************************/ *************************************************************************/
sal_uLong RscFileTab :: NewCodeFile( const rtl::OString& rName ) sal_uLong RscFileTab :: NewCodeFile( const rtl::OString& rName )
{ {
sal_uLong lKey; sal_uLong lKey = Find( rName );
RscFile * pFName;
lKey = Find( rName );
if( UNIQUEINDEX_ENTRY_NOTFOUND == lKey ) if( UNIQUEINDEX_ENTRY_NOTFOUND == lKey )
{ {
pFName = new RscFile(); RscFile * pFName = new RscFile();
pFName->aFileName = rName; pFName->aFileName = rName;
pFName->aPathName = rName; pFName->aPathName = rName;
lKey = Insert( pFName ); lKey = Insert( pFName );
...@@ -867,13 +864,10 @@ sal_uLong RscFileTab :: NewCodeFile( const rtl::OString& rName ) ...@@ -867,13 +864,10 @@ sal_uLong RscFileTab :: NewCodeFile( const rtl::OString& rName )
sal_uLong RscFileTab :: NewIncFile(const rtl::OString& rName, sal_uLong RscFileTab :: NewIncFile(const rtl::OString& rName,
const rtl::OString& rPath) const rtl::OString& rPath)
{ {
sal_uLong lKey; sal_uLong lKey = Find( rName );
RscFile * pFName;
lKey = Find( rName );
if( UNIQUEINDEX_ENTRY_NOTFOUND == lKey ) if( UNIQUEINDEX_ENTRY_NOTFOUND == lKey )
{ {
pFName = new RscFile(); RscFile * pFName = new RscFile();
pFName->aFileName = rName; pFName->aFileName = rName;
pFName->aPathName = rPath; pFName->aPathName = rPath;
pFName->SetIncFlag(); pFName->SetIncFlag();
......
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