Kaydet (Commit) 4cc0dfb2 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: unsafe mix of type 'bool' and type foo in operation

üst 0f96c763
......@@ -1717,8 +1717,8 @@ IMPL_LINK( ScAcceptChgDlg, UpdateSelectionHdl, Timer*, EMPTYARG )
ScRedlinData* pEntryData = (ScRedlinData*) pEntry->GetUserData();
if( pEntryData )
{
bRejectFlag &= pEntryData->bIsRejectable;
bAcceptFlag &= pEntryData->bIsAcceptable;
bRejectFlag &= (bool) pEntryData->bIsRejectable;
bAcceptFlag &= (bool) pEntryData->bIsAcceptable;
const ScChangeAction* pScChangeAction = (ScChangeAction*) pEntryData->pData;
if( pScChangeAction && (pScChangeAction->GetType() != SC_CAT_DELETE_TABS) &&
......
......@@ -79,7 +79,7 @@ ScReplaceWarnBox::ScReplaceWarnBox( Window* pParent ) :
bool ScReplaceWarnBox::IsDialogEnabled()
{
return SC_MOD()->GetInputOptions().GetReplaceCellsWarn() == true;
return ((bool) SC_MOD()->GetInputOptions().GetReplaceCellsWarn()) == true;
}
void ScReplaceWarnBox::DisableDialog()
......
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