Some cppcheck cleaning
Change-Id: I3d515fabc272e5c14f2e2779da1c43f92514f290
This commit is contained in:
@@ -1001,12 +1001,12 @@ int SvxAreaTabPage::DeactivatePage( SfxItemSet* _pSet )
|
|||||||
|
|
||||||
sal_Bool SvxAreaTabPage::FillItemSet( SfxItemSet& rAttrs )
|
sal_Bool SvxAreaTabPage::FillItemSet( SfxItemSet& rAttrs )
|
||||||
{
|
{
|
||||||
const SfxPoolItem* pOld = NULL;
|
|
||||||
sal_uInt16 _nPos;
|
sal_uInt16 _nPos;
|
||||||
sal_Bool bModified = sal_False;
|
sal_Bool bModified = sal_False;
|
||||||
|
|
||||||
if( nDlgType != 0 || *pbAreaTP )
|
if( nDlgType != 0 || *pbAreaTP )
|
||||||
{
|
{
|
||||||
|
const SfxPoolItem* pOld = NULL;
|
||||||
XFillStyle eStyle = (XFillStyle) aTypeLB.GetSelectEntryPos();
|
XFillStyle eStyle = (XFillStyle) aTypeLB.GetSelectEntryPos();
|
||||||
XFillStyle eSavedStyle = (XFillStyle) aTypeLB.GetSavedValue();
|
XFillStyle eSavedStyle = (XFillStyle) aTypeLB.GetSavedValue();
|
||||||
switch( eStyle )
|
switch( eStyle )
|
||||||
|
@@ -40,7 +40,7 @@ public:
|
|||||||
double fMaxY;
|
double fMaxY;
|
||||||
double fMaxZ;
|
double fMaxZ;
|
||||||
|
|
||||||
DXFBoundingBox() { bEmpty=sal_True; }
|
DXFBoundingBox():bEmpty(sal_True), fMinX(0.0), fMinY(0.0), fMinZ(0.0), fMaxX(0.0), fMaxY(0.0), fMaxZ(0.0) {}
|
||||||
void Union(const DXFVector & rVector);
|
void Union(const DXFVector & rVector);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -184,7 +184,6 @@ bool HelpParser::Merge( const rtl::OString &rSDFFile, const rtl::OString &rDesti
|
|||||||
{
|
{
|
||||||
|
|
||||||
(void) rSDFFile;
|
(void) rSDFFile;
|
||||||
bool hasNoError = true;
|
|
||||||
|
|
||||||
SimpleXMLParser aParser;
|
SimpleXMLParser aParser;
|
||||||
|
|
||||||
@@ -193,7 +192,7 @@ bool HelpParser::Merge( const rtl::OString &rSDFFile, const rtl::OString &rDesti
|
|||||||
//TODO: explicit BOM handling?
|
//TODO: explicit BOM handling?
|
||||||
|
|
||||||
XMLFile* xmlfile = ( aParser.Execute( sXmlFile, new XMLFile( rtl::OUString('0') ) ) );
|
XMLFile* xmlfile = ( aParser.Execute( sXmlFile, new XMLFile( rtl::OUString('0') ) ) );
|
||||||
hasNoError = MergeSingleFile( xmlfile , aMergeDataFile , rLanguage , rDestinationFile );
|
bool hasNoError = MergeSingleFile( xmlfile , aMergeDataFile , rLanguage , rDestinationFile );
|
||||||
delete xmlfile;
|
delete xmlfile;
|
||||||
return hasNoError;
|
return hasNoError;
|
||||||
}
|
}
|
||||||
@@ -233,7 +232,6 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const rtl::OString& sCur ,
|
|||||||
|
|
||||||
XMLElement* pXMLElement = NULL;
|
XMLElement* pXMLElement = NULL;
|
||||||
PFormEntrys *pEntrys = NULL;
|
PFormEntrys *pEntrys = NULL;
|
||||||
XMLData *data = NULL;
|
|
||||||
|
|
||||||
rtl::OString sLId;
|
rtl::OString sLId;
|
||||||
rtl::OString sGId;
|
rtl::OString sGId;
|
||||||
@@ -284,7 +282,7 @@ void HelpParser::ProcessHelp( LangHashMap* aLangHM , const rtl::OString& sCur ,
|
|||||||
{
|
{
|
||||||
if( pXMLElement != NULL )
|
if( pXMLElement != NULL )
|
||||||
{
|
{
|
||||||
data = new XMLData( sNewdata , NULL , true ); // Add new one
|
XMLData *data = new XMLData( sNewdata , NULL , true ); // Add new one
|
||||||
pXMLElement->RemoveAndDeleteAllChildren();
|
pXMLElement->RemoveAndDeleteAllChildren();
|
||||||
pXMLElement->AddChild( data );
|
pXMLElement->AddChild( data );
|
||||||
aLangHM->erase( sCur );
|
aLangHM->erase( sCur );
|
||||||
|
@@ -185,7 +185,7 @@ double bincash(double S, double vol, double rd, double rf,
|
|||||||
val = -pm*dnorm(d2)*sqrt(tau)/vol;
|
val = -pm*dnorm(d2)*sqrt(tau)/vol;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("bincash: greek %ui not implemented\n", greeks );
|
printf("bincash: greek %d not implemented\n", greeks );
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -286,7 +286,7 @@ double binasset(double S, double vol, double rd, double rf,
|
|||||||
val = -tau*S*pnorm(pm*d1) - pm*S*dnorm(d1)*sqrt(tau)/vol;
|
val = -tau*S*pnorm(pm*d1) - pm*S*dnorm(d1)*sqrt(tau)/vol;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("binasset: greek %ui not implemented\n", greeks );
|
printf("binasset: greek %d not implemented\n", greeks );
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -652,7 +652,7 @@ double barrier_term(double S, double vol, double rd, double rf,
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("barrier_term: greek %ui not implemented\n", greek );
|
printf("barrier_term: greek %d not implemented\n", greek );
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
@@ -708,7 +708,7 @@ double barrier_double_term( double S, double vol, double rd, double rf,
|
|||||||
barrier_term(S,vol,rd,rf,tau,K,B1,B2,sc,pc,fd,types::Value);
|
barrier_term(S,vol,rd,rf,tau,K,B1,B2,sc,pc,fd,types::Value);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("barrier_double_term: greek %ui not implemented\n", greek );
|
printf("barrier_double_term: greek %d not implemented\n", greek );
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
|
@@ -101,9 +101,7 @@ struct SfxObjectBars_Impl
|
|||||||
String aName;
|
String aName;
|
||||||
SfxInterface* pIFace;
|
SfxInterface* pIFace;
|
||||||
|
|
||||||
SfxObjectBars_Impl() :
|
SfxObjectBars_Impl() : nResId(0), nMode(0), pIFace(NULL) {}
|
||||||
nResId( 0 )
|
|
||||||
{}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
|
@@ -1522,7 +1522,6 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
|
|||||||
if (pState->mnMask & _FRAMESTATE_MASK_GEOMETRY)
|
if (pState->mnMask & _FRAMESTATE_MASK_GEOMETRY)
|
||||||
{
|
{
|
||||||
Rectangle aPosSize;
|
Rectangle aPosSize;
|
||||||
bool bDoAdjust = false;
|
|
||||||
|
|
||||||
/* #i44325#
|
/* #i44325#
|
||||||
* if maximized, set restore size and guess maximized size from last time
|
* if maximized, set restore size and guess maximized size from last time
|
||||||
@@ -1562,6 +1561,7 @@ void X11SalFrame::SetWindowState( const SalFrameState *pState )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
bool bDoAdjust = false;
|
||||||
// initialize with current geometry
|
// initialize with current geometry
|
||||||
if ((pState->mnMask & _FRAMESTATE_MASK_GEOMETRY) != _FRAMESTATE_MASK_GEOMETRY)
|
if ((pState->mnMask & _FRAMESTATE_MASK_GEOMETRY) != _FRAMESTATE_MASK_GEOMETRY)
|
||||||
GetPosSize (aPosSize);
|
GetPosSize (aPosSize);
|
||||||
|
Reference in New Issue
Block a user