summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/core/data/cell2.cxx2
-rw-r--r--sc/source/core/tool/parclass.cxx2
-rw-r--r--sc/source/filter/excel/xechart.cxx4
-rw-r--r--sc/source/filter/excel/xeescher.cxx4
-rw-r--r--sc/source/filter/excel/xlroot.cxx2
-rw-r--r--sc/source/filter/xml/xmlstyli.cxx2
-rw-r--r--sc/source/ui/dbgui/pvlaydlg.cxx2
-rw-r--r--sc/source/ui/unoobj/chart2uno.cxx24
8 files changed, 21 insertions, 21 deletions
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx
index 083044f5e076..bdd8137b4511 100644
--- a/sc/source/core/data/cell2.cxx
+++ b/sc/source/core/data/cell2.cxx
@@ -460,7 +460,7 @@ lcl_refListFormsOneRange(
}
else
{
- OSL_ENSURE(false, "lcl_checkRangeDimensions shouldn't allow that!");
+ OSL_FAIL( "lcl_checkRangeDimensions shouldn't allow that!");
aWhich = lcl_GetRow; // initialize to avoid warning
}
// Sort the references by start of range
diff --git a/sc/source/core/tool/parclass.cxx b/sc/source/core/tool/parclass.cxx
index 0c75c8eaa9c7..cb55ca2f8870 100644
--- a/sc/source/core/tool/parclass.cxx
+++ b/sc/source/core/tool/parclass.cxx
@@ -422,7 +422,7 @@ void ScParameterClassification::MergeArgumentsFromFunctionResource()
aBuf.append(rtl::OUStringToOString(*(pDesc->pFuncName), RTL_TEXTENCODING_UTF8));
aBuf.append(": ");
aBuf.append(nArgs);
- OSL_ENSURE(false, aBuf.getStr());
+ OSL_FAIL( aBuf.getStr());
nArgs = CommonData::nMaxParams;
pRun->aData.bRepeatLast = true;
}
diff --git a/sc/source/filter/excel/xechart.cxx b/sc/source/filter/excel/xechart.cxx
index a5f47770e4a2..eef95166839b 100644
--- a/sc/source/filter/excel/xechart.cxx
+++ b/sc/source/filter/excel/xechart.cxx
@@ -2277,7 +2277,7 @@ void XclExpChLegend::Convert( const ScfPropertySet& rPropSet )
}
catch( Exception& )
{
- OSL_ENSURE( false, "XclExpChLegend::Convert - cannot get legend shape" );
+ OSL_FAIL( "XclExpChLegend::Convert - cannot get legend shape" );
maData.mnDockMode = EXC_CHLEGEND_RIGHT;
}
}
@@ -2292,7 +2292,7 @@ void XclExpChLegend::Convert( const ScfPropertySet& rPropSet )
case cssc2::LegendPosition_PAGE_START: maData.mnDockMode = EXC_CHLEGEND_TOP; break;
case cssc2::LegendPosition_PAGE_END: maData.mnDockMode = EXC_CHLEGEND_BOTTOM; break;
default:
- OSL_ENSURE( false, "XclExpChLegend::Convert - unrecognized legend position" );
+ OSL_FAIL( "XclExpChLegend::Convert - unrecognized legend position" );
maData.mnDockMode = EXC_CHLEGEND_RIGHT;
}
}
diff --git a/sc/source/filter/excel/xeescher.cxx b/sc/source/filter/excel/xeescher.cxx
index e26a0b3e630c..d1c5f9c382de 100644
--- a/sc/source/filter/excel/xeescher.cxx
+++ b/sc/source/filter/excel/xeescher.cxx
@@ -251,12 +251,12 @@ void XclExpDffAnchorBase::WriteData( EscherEx& rEscherEx, const Rectangle& rRect
void XclExpDffAnchorBase::ImplSetFlags( const SdrObject& )
{
- OSL_ENSURE( false, "XclExpDffAnchorBase::ImplSetFlags - not implemented" );
+ OSL_FAIL( "XclExpDffAnchorBase::ImplSetFlags - not implemented" );
}
void XclExpDffAnchorBase::ImplCalcAnchorRect( const Rectangle&, MapUnit )
{
- OSL_ENSURE( false, "XclExpDffAnchorBase::ImplCalcAnchorRect - not implemented" );
+ OSL_FAIL( "XclExpDffAnchorBase::ImplCalcAnchorRect - not implemented" );
}
// ----------------------------------------------------------------------------
diff --git a/sc/source/filter/excel/xlroot.cxx b/sc/source/filter/excel/xlroot.cxx
index 5d439a249bc1..c90d6bfb388a 100644
--- a/sc/source/filter/excel/xlroot.cxx
+++ b/sc/source/filter/excel/xlroot.cxx
@@ -159,7 +159,7 @@ XclRootData::XclRootData( XclBiff eBiff, SfxMedium& rMedium,
}
catch( Exception& )
{
- OSL_ENSURE( false, "XclRootData::XclRootData - cannot get output device info" );
+ OSL_FAIL( "XclRootData::XclRootData - cannot get output device info" );
}
}
diff --git a/sc/source/filter/xml/xmlstyli.cxx b/sc/source/filter/xml/xmlstyli.cxx
index 796e63f9688d..37c8b0d00c8a 100644
--- a/sc/source/filter/xml/xmlstyli.cxx
+++ b/sc/source/filter/xml/xmlstyli.cxx
@@ -394,7 +394,7 @@ void XMLTableStyleContext::SetFormula( uno::Sequence< beans::PropertyValue >& rP
lclAppendProperty( rProps, OUString( RTL_CONSTASCII_USTRINGPARAM( SC_UNONAME_GRAMMAR2 ) ), nGrammar );
break;
default:
- OSL_ENSURE( false, "XMLTableStyleContext::SetFormula - invalid formula index" );
+ OSL_FAIL( "XMLTableStyleContext::SetFormula - invalid formula index" );
}
}
diff --git a/sc/source/ui/dbgui/pvlaydlg.cxx b/sc/source/ui/dbgui/pvlaydlg.cxx
index 71ba04990861..4d7822bd9279 100644
--- a/sc/source/ui/dbgui/pvlaydlg.cxx
+++ b/sc/source/ui/dbgui/pvlaydlg.cxx
@@ -1445,7 +1445,7 @@ void ScDPLayoutDlg::UpdateSrcRange()
inSheet.SetRangeName(aSrcStr);
break;
default:
- OSL_ENSURE(false, "Unknown source type.");
+ OSL_FAIL( "Unknown source type.");
return;
}
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 98c21cbf760d..52d7b4977c5f 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -2114,7 +2114,7 @@ void SAL_CALL ScChart2DataProvider::addPropertyChangeListener(
throw( beans::UnknownPropertyException,
lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
@@ -2124,7 +2124,7 @@ void SAL_CALL ScChart2DataProvider::removePropertyChangeListener(
throw( beans::UnknownPropertyException,
lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
@@ -2134,7 +2134,7 @@ void SAL_CALL ScChart2DataProvider::addVetoableChangeListener(
throw( beans::UnknownPropertyException,
lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
@@ -2144,7 +2144,7 @@ void SAL_CALL ScChart2DataProvider::removeVetoableChangeListener(
throw( beans::UnknownPropertyException,
lang::WrappedTargetException, uno::RuntimeException)
{
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
// DataSource ================================================================
@@ -3387,7 +3387,7 @@ void SAL_CALL ScChart2DataSequence::addPropertyChangeListener(
lang::WrappedTargetException, uno::RuntimeException)
{
// FIXME: real implementation
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
@@ -3398,7 +3398,7 @@ void SAL_CALL ScChart2DataSequence::removePropertyChangeListener(
lang::WrappedTargetException, uno::RuntimeException)
{
// FIXME: real implementation
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
@@ -3409,7 +3409,7 @@ void SAL_CALL ScChart2DataSequence::addVetoableChangeListener(
lang::WrappedTargetException, uno::RuntimeException)
{
// FIXME: real implementation
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
@@ -3420,7 +3420,7 @@ void SAL_CALL ScChart2DataSequence::removeVetoableChangeListener(
lang::WrappedTargetException, uno::RuntimeException)
{
// FIXME: real implementation
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
void ScChart2DataSequence::setDataChangedHint(bool b)
@@ -3661,7 +3661,7 @@ void SAL_CALL ScChart2EmptyDataSequence::addPropertyChangeListener(
lang::WrappedTargetException, uno::RuntimeException)
{
// FIXME: real implementation
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
@@ -3672,7 +3672,7 @@ void SAL_CALL ScChart2EmptyDataSequence::removePropertyChangeListener(
lang::WrappedTargetException, uno::RuntimeException)
{
// FIXME: real implementation
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
@@ -3683,7 +3683,7 @@ void SAL_CALL ScChart2EmptyDataSequence::addVetoableChangeListener(
lang::WrappedTargetException, uno::RuntimeException)
{
// FIXME: real implementation
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
@@ -3694,7 +3694,7 @@ void SAL_CALL ScChart2EmptyDataSequence::removeVetoableChangeListener(
lang::WrappedTargetException, uno::RuntimeException)
{
// FIXME: real implementation
- OSL_ENSURE( false, "Not yet implemented" );
+ OSL_FAIL( "Not yet implemented" );
}
#endif