tdf#43157: Clean up OSL_FAIL
Change-Id: Id4472bd810263ca842d14af6ad4a1359c002fb6c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152344 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
committed by
Mike Kaganski
parent
7bec1689fc
commit
69a3bcdaa5
@@ -145,7 +145,7 @@ namespace offapp
|
||||
UpdateDriverList(pDriverSettings->getSettings());
|
||||
else
|
||||
{
|
||||
OSL_FAIL("ConnectionPoolOptionsPage::implInitControls: missing the DriverTimeouts item!");
|
||||
SAL_WARN("cui.options", "ConnectionPoolOptionsPage::implInitControls: missing the DriverTimeouts item!");
|
||||
UpdateDriverList(DriverPoolingSettings());
|
||||
}
|
||||
saveDriverList();
|
||||
|
||||
@@ -702,7 +702,7 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* )
|
||||
case 2: eSet = SFX_SYMBOLS_SIZE_LARGE; break;
|
||||
case 3: eSet = SFX_SYMBOLS_SIZE_32; break;
|
||||
default:
|
||||
OSL_FAIL( "OfaViewTabPage::FillItemSet(): This state of m_xIconSizeLB should not be possible!" );
|
||||
SAL_WARN("cui.options", "OfaViewTabPage::FillItemSet(): This state of m_xIconSizeLB should not be possible!");
|
||||
}
|
||||
aMiscOptions.SetSymbolsSize( eSet );
|
||||
}
|
||||
@@ -718,7 +718,7 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* )
|
||||
case 1: eSet = ToolBoxButtonSize::Small; break;
|
||||
case 2: eSet = ToolBoxButtonSize::Large; break;
|
||||
default:
|
||||
OSL_FAIL( "OfaViewTabPage::FillItemSet(): This state of m_xSidebarIconSizeLB should not be possible!" );
|
||||
SAL_WARN("cui.options", "OfaViewTabPage::FillItemSet(): This state of m_xSidebarIconSizeLB should not be possible!");
|
||||
}
|
||||
officecfg::Office::Common::Misc::SidebarIconSize::set(static_cast<sal_Int16>(eSet), xChanges);
|
||||
}
|
||||
@@ -734,7 +734,7 @@ bool OfaViewTabPage::FillItemSet( SfxItemSet* )
|
||||
case 1: eSet = ToolBoxButtonSize::Small; break;
|
||||
case 2: eSet = ToolBoxButtonSize::Large; break;
|
||||
default:
|
||||
OSL_FAIL( "OfaViewTabPage::FillItemSet(): This state of m_xNotebookbarIconSizeLB should not be possible!" );
|
||||
SAL_WARN("cui.options", "OfaViewTabPage::FillItemSet(): This state of m_xNotebookbarIconSizeLB should not be possible!");
|
||||
}
|
||||
officecfg::Office::Common::Misc::NotebookbarIconSize::set(static_cast<sal_Int16>(eSet), xChanges);
|
||||
}
|
||||
|
||||
@@ -1519,7 +1519,7 @@ IMPL_LINK(SvxLinguTabPage, ClickHdl_Impl, weld::Button&, rBtn, void)
|
||||
}
|
||||
else
|
||||
{
|
||||
OSL_FAIL( "rBtn unexpected value" );
|
||||
SAL_WARN("cui.options", "rBtn unexpected value");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1551,7 +1551,7 @@ IMPL_LINK(SvxLinguTabPage, SelectHdl_Impl, weld::TreeView&, rBox, void)
|
||||
}
|
||||
else
|
||||
{
|
||||
OSL_FAIL( "rBox unexpected value" );
|
||||
SAL_WARN("cui.options", "rBtn unexpected value");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -422,7 +422,7 @@ void SvxSaveTabPage::Reset( const SfxItemSet* )
|
||||
case APP_IMPRESS : sReplace = "com.sun.star.presentation.PresentationDocument";break;
|
||||
case APP_DRAW : sReplace = "com.sun.star.drawing.DrawingDocument";break;
|
||||
case APP_MATH : sReplace = "com.sun.star.formula.FormulaProperties";break;
|
||||
default: OSL_FAIL("illegal user data");
|
||||
default: SAL_WARN("cui.options", "illegal user data");
|
||||
}
|
||||
sCommand = sCommand.replaceFirst("%1", sReplace);
|
||||
Reference< XEnumeration > xList = xQuery->createSubSetEnumerationByQuery(sCommand);
|
||||
|
||||
@@ -1207,7 +1207,7 @@ void OfaTreeOptionsDialog::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet
|
||||
|
||||
default:
|
||||
{
|
||||
OSL_FAIL( "Unhandled option in ApplyItemSet" );
|
||||
SAL_WARN("cui.options", "Unhandled option in ApplyItemSet");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user