Kaydet (Commit) 958048fa authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:implicitboolconversion clean-up

Change-Id: I165f9cff6c0e942213dddf3b5841c4bb22017330
üst f4022fed
......@@ -375,7 +375,7 @@ private:
XclExpString sName;
XclExpString sComment;
XclExpString sUserName;
sal_uInt8 nProtected;
bool nProtected;
std::vector<ExcEScenarioCell> aCells;
......
......@@ -1236,7 +1236,7 @@ ExcEScenario::ExcEScenario( const XclExpRoot& rRoot, SCTAB nTab )
sComment.Assign( sTmpComm, EXC_STR_DEFAULT, 255 );
if( sComment.Len() )
nRecLen += sComment.GetSize();
nProtected = (nFlags & SC_SCENARIO_PROTECT) ? 1 : 0;
nProtected = (nFlags & SC_SCENARIO_PROTECT);
sUserName.Assign( rRoot.GetUserName(), EXC_STR_DEFAULT, 255 );
nRecLen += sUserName.GetSize();
......@@ -1294,7 +1294,7 @@ void ExcEScenario::SaveCont( XclExpStream& rStrm )
sal_uInt16 count = aCells.size();
rStrm << (sal_uInt16) count // number of cells
<< nProtected // fProtection
<< sal_uInt8(nProtected) // fProtection
<< (sal_uInt8) 0 // fHidden
<< (sal_uInt8) sName.Len() // length of scen name
<< (sal_uInt8) sComment.Len() // length of comment
......
......@@ -192,10 +192,10 @@ sal_uInt8 FuPoor::Command(const CommandEvent& rCEvt)
if ( pOutView )
return pOutView->HasSelection() ? (pView->Command(rCEvt,pWindow) ? 1 : 0) : SC_CMD_NONE;
else
return pView->Command(rCEvt,pWindow);
return pView->Command(rCEvt,pWindow) ? 1 : 0;
}
else
return pView->Command(rCEvt,pWindow);
return pView->Command(rCEvt,pWindow) ? 1 : 0;
}
/*************************************************************************
......
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