[Libreoffice-commits] core.git: 15 commits - accessibility/source avmedia/source basegfx/source basic/source canvas/source chart2/source connectivity/source cppcanvas/source cppuhelper/source cppu/source editeng/source fpicker/source framework/source i18npool/source include/canvas include/salhelper io/source io/test javaunohelper/source jvmfwk/plugins jvmfwk/source package/source pyuno/source registry/tools salhelper/source sax/test sdext/source sfx2/source slideshow/source smoketest/smoketest.cxx stoc/source stoc/test store/source svl/source svtools/source svx/source tools/source ucb/source unotest/source unotools/source unoxml/source uui/source vcl/osx vcl/source vcl/unx writerperfect/inc writerperfect/source xmlhelp/source xmloff/source xmlscript/source xmlscript/test
Chris Sherlock
chris.sherlock79 at gmail.com
Sun May 7 07:05:44 UTC 2017
accessibility/source/extended/accessiblelistbox.cxx | 2
avmedia/source/gstreamer/gstplayer.cxx | 2
avmedia/source/quicktime/player.mm | 2
basegfx/source/range/b2drangeclipper.cxx | 2
basic/source/classes/sbunoobj.cxx | 8
basic/source/runtime/dllmgr-x64.cxx | 26 +-
basic/source/runtime/dllmgr-x86.cxx | 26 +-
basic/source/uno/dlgcont.cxx | 2
canvas/source/cairo/cairo_canvashelper.cxx | 2
canvas/source/opengl/ogl_canvashelper.cxx | 2
chart2/source/controller/accessibility/AccessibleBase.cxx | 8
chart2/source/controller/accessibility/AccessibleChartElement.cxx | 2
chart2/source/controller/accessibility/AccessibleChartShape.cxx | 2
chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx | 6
chart2/source/controller/chartapiwrapper/TitleWrapper.cxx | 8
chart2/source/controller/dialogs/DataBrowser.cxx | 4
chart2/source/controller/dialogs/DataBrowserModel.cxx | 10 -
chart2/source/controller/dialogs/DialogModel.cxx | 4
chart2/source/controller/dialogs/dlg_DataSource.cxx | 4
chart2/source/controller/dialogs/dlg_ObjectProperties.cxx | 4
chart2/source/controller/dialogs/res_ErrorBar.cxx | 12 -
chart2/source/controller/dialogs/tp_DataSource.cxx | 4
chart2/source/controller/drawinglayer/DrawViewWrapper.cxx | 4
chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx | 4
chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx | 2
chart2/source/controller/itemsetwrapper/ItemConverter.cxx | 8
chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx | 10 -
chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx | 8
chart2/source/controller/main/ChartController_Properties.cxx | 2
chart2/source/controller/main/ChartController_Tools.cxx | 4
chart2/source/controller/main/ChartController_Window.cxx | 2
chart2/source/controller/main/ChartModelClone.cxx | 2
chart2/source/controller/main/CommandDispatch.cxx | 2
chart2/source/controller/main/ControllerCommandDispatch.cxx | 6
chart2/source/controller/main/ObjectHierarchy.cxx | 6
chart2/source/controller/main/StatusBarCommandDispatch.cxx | 2
chart2/source/model/main/Axis.cxx | 4
chart2/source/model/main/BaseCoordinateSystem.cxx | 4
chart2/source/model/main/ChartModel_Persistence.cxx | 2
chart2/source/model/main/DataPoint.cxx | 2
chart2/source/model/main/DataSeries.cxx | 2
chart2/source/model/template/BubbleDataInterpreter.cxx | 4
chart2/source/model/template/CandleStickChartType.cxx | 2
chart2/source/model/template/ChartTypeManager.cxx | 2
chart2/source/model/template/ChartTypeTemplate.cxx | 8
chart2/source/model/template/ColumnLineChartTypeTemplate.cxx | 2
chart2/source/model/template/ColumnLineDataInterpreter.cxx | 2
chart2/source/model/template/DataInterpreter.cxx | 4
chart2/source/model/template/StockChartTypeTemplate.cxx | 2
chart2/source/model/template/StockDataInterpreter.cxx | 14 -
chart2/source/model/template/XYDataInterpreter.cxx | 4
chart2/source/tools/AxisHelper.cxx | 4
chart2/source/tools/CachedDataSequence.cxx | 6
chart2/source/tools/CharacterProperties.cxx | 2
chart2/source/tools/CommonConverters.cxx | 2
chart2/source/tools/ConfigColorScheme.cxx | 2
chart2/source/tools/DiagramHelper.cxx | 22 +-
chart2/source/tools/InternalData.cxx | 8
chart2/source/tools/InternalDataProvider.cxx | 8
chart2/source/tools/MeanValueRegressionCurveCalculator.cxx | 2
chart2/source/tools/PropertyHelper.cxx | 4
chart2/source/tools/RelativePositionHelper.cxx | 2
chart2/source/tools/ResourceManager.cxx | 2
chart2/source/tools/StatisticsHelper.cxx | 2
chart2/source/view/charttypes/Splines.cxx | 4
chart2/source/view/charttypes/VSeriesPlotter.cxx | 6
chart2/source/view/main/ChartView.cxx | 10 -
chart2/source/view/main/VLegend.cxx | 2
connectivity/source/commontools/dbtools.cxx | 2
connectivity/source/cpool/ZPoolCollection.cxx | 2
connectivity/source/drivers/dbase/DIndex.cxx | 2
connectivity/source/drivers/dbase/DTable.cxx | 4
connectivity/source/drivers/firebird/Driver.cxx | 2
connectivity/source/drivers/flat/ETable.cxx | 2
connectivity/source/drivers/jdbc/JConnection.cxx | 2
connectivity/source/drivers/kab/KStatement.cxx | 4
connectivity/source/drivers/kab/kfields.cxx | 2
connectivity/source/drivers/macab/MacabStatement.cxx | 4
connectivity/source/drivers/postgresql/pq_xcontainer.cxx | 2
connectivity/source/parse/sqlnode.cxx | 2
cppcanvas/source/mtfrenderer/emfpfont.cxx | 2
cppcanvas/source/mtfrenderer/emfplus.cxx | 2
cppcanvas/source/mtfrenderer/emfpstringformat.cxx | 2
cppu/source/AffineBridge/AffineBridge.cxx | 14 -
cppu/source/LogBridge/LogBridge.cxx | 8
cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx | 4
cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx | 2
cppu/source/threadpool/current.cxx | 14 -
cppu/source/threadpool/jobqueue.cxx | 2
cppu/source/threadpool/thread.cxx | 2
cppu/source/threadpool/threadident.cxx | 8
cppu/source/threadpool/threadpool.cxx | 14 -
cppu/source/typelib/typelib.cxx | 68 +++----
cppu/source/uno/assign.hxx | 2
cppu/source/uno/cascade_mapping.cxx | 2
cppu/source/uno/constr.hxx | 2
cppu/source/uno/copy.hxx | 8
cppu/source/uno/destr.hxx | 2
cppu/source/uno/eq.hxx | 4
cppu/source/uno/lbenv.cxx | 14 -
cppu/source/uno/lbmap.cxx | 10 -
cppu/source/uno/sequence.cxx | 14 -
cppuhelper/source/component.cxx | 2
cppuhelper/source/component_context.cxx | 6
cppuhelper/source/exc_thrower.cxx | 10 -
cppuhelper/source/implbase.cxx | 4
cppuhelper/source/interfacecontainer.cxx | 8
cppuhelper/source/tdmgr.cxx | 14 -
cppuhelper/source/weak.cxx | 10 -
editeng/source/outliner/paralist.cxx | 2
fpicker/source/aqua/resourceprovider.mm | 2
framework/source/accelerators/presethandler.cxx | 2
framework/source/recording/dispatchrecorder.cxx | 2
framework/source/services/ContextChangeEventMultiplexer.cxx | 2
framework/source/uielement/toolbarmanager.cxx | 6
i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx | 6
i18npool/source/localedata/localedata.cxx | 8
include/canvas/base/spritecanvasbase.hxx | 8
include/salhelper/refobj.hxx | 2
io/source/acceptor/acc_pipe.cxx | 2
io/source/stm/omark.cxx | 4
io/test/stm/datatest.cxx | 24 +-
io/test/stm/marktest.cxx | 8
io/test/testconnection.cxx | 6
javaunohelper/source/bootstrap.cxx | 4
jvmfwk/plugins/sunmajor/pluginlib/gnujre.cxx | 4
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx | 12 -
jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 8
jvmfwk/plugins/sunmajor/pluginlib/vendorbase.cxx | 4
jvmfwk/source/elements.cxx | 6
jvmfwk/source/framework.cxx | 6
jvmfwk/source/fwkbase.cxx | 6
package/source/zipapi/Deflater.cxx | 2
pyuno/source/module/pyuno_module.cxx | 2
pyuno/source/module/pyuno_runtime.cxx | 2
registry/tools/fileurl.cxx | 6
salhelper/source/simplereferenceobject.cxx | 3
salhelper/source/timer.cxx | 16 -
sax/test/sax/testsax.cxx | 8
sdext/source/pdfimport/tree/imagecontainer.cxx | 2
sdext/source/pdfimport/wrapper/wrapper.cxx | 8
sdext/source/presenter/PresenterAccessibility.cxx | 6
sdext/source/presenter/PresenterBitmapContainer.cxx | 8
sdext/source/presenter/PresenterButton.cxx | 4
sdext/source/presenter/PresenterCanvasHelper.cxx | 2
sdext/source/presenter/PresenterConfigurationAccess.cxx | 4
sdext/source/presenter/PresenterController.cxx | 6
sdext/source/presenter/PresenterHelpView.cxx | 2
sdext/source/presenter/PresenterNotesView.cxx | 8
sdext/source/presenter/PresenterPaneBase.cxx | 12 -
sdext/source/presenter/PresenterPaneBorderPainter.cxx | 8
sdext/source/presenter/PresenterPaneContainer.cxx | 4
sdext/source/presenter/PresenterPaneFactory.cxx | 4
sdext/source/presenter/PresenterProtocolHandler.cxx | 2
sdext/source/presenter/PresenterScreen.cxx | 14 -
sdext/source/presenter/PresenterScrollBar.cxx | 12 -
sdext/source/presenter/PresenterSlidePreview.cxx | 2
sdext/source/presenter/PresenterSlideSorter.cxx | 18 -
sdext/source/presenter/PresenterSpritePane.cxx | 4
sdext/source/presenter/PresenterTextView.cxx | 4
sdext/source/presenter/PresenterTheme.cxx | 6
sdext/source/presenter/PresenterToolBar.cxx | 40 ++--
sdext/source/presenter/PresenterViewFactory.cxx | 2
sdext/source/presenter/PresenterWindowManager.cxx | 6
sfx2/source/appl/appuno.cxx | 2
sfx2/source/appl/shutdownicon.cxx | 2
sfx2/source/dialog/mailmodel.cxx | 6
sfx2/source/dialog/templdlg.cxx | 2
sfx2/source/sidebar/DeckLayouter.cxx | 8
sfx2/source/sidebar/DeckTitleBar.cxx | 2
sfx2/source/sidebar/PanelTitleBar.cxx | 2
sfx2/source/sidebar/SidebarController.cxx | 2
sfx2/source/sidebar/SidebarDockingWindow.cxx | 4
sfx2/source/sidebar/TabBar.cxx | 2
sfx2/source/sidebar/Theme.cxx | 16 -
sfx2/source/sidebar/TitleBar.cxx | 2
sfx2/source/toolbox/tbxitem.cxx | 4
sfx2/source/view/viewsh.cxx | 4
slideshow/source/engine/activities/activitybase.cxx | 2
slideshow/source/engine/animationnodes/basecontainernode.cxx | 6
slideshow/source/engine/animationnodes/basenode.cxx | 10 -
slideshow/source/engine/animationnodes/sequentialtimecontainer.cxx | 4
slideshow/source/engine/delayevent.cxx | 2
slideshow/source/engine/effectrewinder.cxx | 10 -
slideshow/source/engine/eventmultiplexer.cxx | 2
slideshow/source/engine/pointersymbol.cxx | 2
slideshow/source/engine/rehearsetimingsactivity.cxx | 4
slideshow/source/engine/screenupdater.cxx | 4
slideshow/source/engine/shapes/drawinglayeranimation.cxx | 4
slideshow/source/engine/shapes/drawshape.cxx | 10 -
slideshow/source/engine/slide/layer.cxx | 4
slideshow/source/engine/slide/layermanager.cxx | 34 +--
slideshow/source/engine/slideshowimpl.cxx | 8
slideshow/source/engine/slideview.cxx | 2
slideshow/source/engine/transitions/slidechangebase.cxx | 4
slideshow/source/engine/transitions/snakewipe.cxx | 2
slideshow/source/engine/waitsymbol.cxx | 2
smoketest/smoketest.cxx | 4
stoc/source/corereflection/crefl.cxx | 2
stoc/source/corereflection/criface.cxx | 6
stoc/source/implementationregistration/implreg.cxx | 2
stoc/source/implementationregistration/mergekeys.cxx | 2
stoc/source/invocation_adapterfactory/iafactory.cxx | 14 -
stoc/source/javavm/javavm.cxx | 8
stoc/source/proxy_factory/proxyfac.cxx | 16 -
stoc/source/security/access_controller.cxx | 12 -
stoc/source/security/file_policy.cxx | 2
stoc/source/servicemanager/servicemanager.cxx | 6
stoc/source/uriproc/UriReference.cxx | 10 -
stoc/source/uriproc/UriSchemeParser_vndDOTsunDOTstarDOTexpand.cxx | 2
stoc/source/uriproc/VndSunStarPkgUrlReferenceFactory.cxx | 4
stoc/test/tdmanager/testtdmanager.cxx | 2
stoc/test/testconv.cxx | 6
stoc/test/testcorefl.cxx | 4
stoc/test/testiadapter.cxx | 12 -
stoc/test/testproxyfac.cxx | 30 +--
stoc/test/testregistry.cxx | 94 ++++------
stoc/test/testsmgr2.cxx | 4
store/source/storbios.cxx | 2
store/source/store.cxx | 4
svl/source/config/itemholder2.cxx | 2
svl/source/misc/strmadpt.cxx | 2
svl/source/misc/urihelper.cxx | 6
svtools/source/config/itemholder2.cxx | 2
svtools/source/control/toolbarmenu.cxx | 4
svtools/source/dialogs/colrdlg.cxx | 2
svtools/source/uno/toolboxcontroller.cxx | 2
svtools/source/uno/treecontrolpeer.cxx | 6
svx/source/accessibility/ChildrenManagerImpl.cxx | 2
svx/source/dialog/SpellDialogChildWindow.cxx | 2
svx/source/sdr/primitive2d/sdrtextprimitive2d.cxx | 2
svx/source/sdr/properties/attributeproperties.cxx | 4
svx/source/sidebar/area/AreaPropertyPanelBase.cxx | 2
svx/source/svdraw/charthelper.cxx | 2
svx/source/svdraw/svditer.cxx | 2
svx/source/svdraw/svdmrkv.cxx | 2
svx/source/svdraw/svdoole2.cxx | 4
svx/source/svdraw/svdpage.cxx | 34 +--
svx/source/unodraw/unoshcol.cxx | 2
svx/source/xml/xmlgrhlp.cxx | 2
svx/source/xoutdev/xtable.cxx | 2
tools/source/fsys/urlobj.cxx | 6
ucb/source/core/ucb.cxx | 2
ucb/source/regexp/regexp.cxx | 6
ucb/source/ucp/file/filtask.cxx | 6
ucb/source/ucp/tdoc/tdoc_storage.cxx | 2
ucb/source/ucp/webdav-neon/DAVSessionFactory.cxx | 2
ucb/source/ucp/webdav-neon/NeonSession.cxx | 2
unotest/source/cpp/getargument.cxx | 2
unotools/source/config/bootstrap.cxx | 14 -
unotools/source/config/confignode.cxx | 2
unoxml/source/dom/attr.cxx | 6
unoxml/source/dom/document.cxx | 6
unoxml/source/dom/node.cxx | 4
uui/source/iahndl-errorhandler.cxx | 2
vcl/osx/HtmlFmtFlt.cxx | 2
vcl/osx/a11ywrapper.mm | 2
vcl/source/gdi/pdfwriter_impl2.cxx | 4
vcl/source/gdi/pngread.cxx | 2
vcl/source/gdi/regband.cxx | 4
vcl/source/gdi/region.cxx | 4
vcl/source/gdi/regionband.cxx | 2
vcl/source/image/ImplImageTree.cxx | 6
vcl/source/window/EnumContext.cxx | 2
vcl/unx/gtk/fpicker/SalGtkFilePicker.cxx | 42 ++--
vcl/unx/gtk/fpicker/SalGtkPicker.cxx | 6
vcl/unx/kde/UnxFilePicker.cxx | 4
writerperfect/inc/ImportFilter.hxx | 2
writerperfect/source/calc/MSWorksCalcImportFilter.cxx | 2
writerperfect/source/writer/WordPerfectImportFilter.cxx | 2
xmlhelp/source/cxxhelp/provider/db.hxx | 2
xmloff/source/chart/SchXMLChartContext.cxx | 6
xmloff/source/chart/SchXMLExport.cxx | 2
xmloff/source/core/attrlist.cxx | 6
xmlscript/source/xml_helper/xml_element.cxx | 6
xmlscript/source/xmldlg_imexp/imp_share.hxx | 4
xmlscript/source/xmldlg_imexp/xmldlg_export.cxx | 4
xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 8
xmlscript/test/imexp.cxx | 6
279 files changed, 848 insertions(+), 849 deletions(-)
New commits:
commit 97eb00c75e173d4c8d0b483a7941ad3d2f23783e
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date: Sun May 7 17:03:35 2017 +1000
revert OSL_ASSERT changes
Change-Id: I365d140446bd2a62cf8256acbfdd53fe72987380
diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx
index 67b2526eee62..dd96005ee3dd 100644
--- a/accessibility/source/extended/accessiblelistbox.cxx
+++ b/accessibility/source/extended/accessiblelistbox.cxx
@@ -156,7 +156,7 @@ namespace accessibility
MAP_ENTRY::iterator mi = m_mapEntry.find(pEntry);
if(mi != m_mapEntry.end())
{
- assert(mi->second.get() != nullptr);
+ OSL_ASSERT(mi->second.get() != nullptr);
m_xFocusedChild = mi->second;
}
else
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx
index 8383d3f3cae6..26b712441692 100644
--- a/avmedia/source/gstreamer/gstplayer.cxx
+++ b/avmedia/source/gstreamer/gstplayer.cxx
@@ -910,7 +910,7 @@ uno::Reference< ::media::XPlayerWindow > SAL_CALL Player::createPlayerWindow( co
rArguments[ 2 ] >>= pIntPtr;
SystemChildWindow *pParentWindow = reinterpret_cast< SystemChildWindow* >( pIntPtr );
const SystemEnvData* pEnvData = pParentWindow ? pParentWindow->GetSystemData() : nullptr;
- assert(pEnvData);
+ OSL_ASSERT(pEnvData);
if (pEnvData)
{
#if defined(ENABLE_GTKSINK)
diff --git a/avmedia/source/quicktime/player.mm b/avmedia/source/quicktime/player.mm
index b5fe12db1a39..d1c44306834f 100644
--- a/avmedia/source/quicktime/player.mm
+++ b/avmedia/source/quicktime/player.mm
@@ -56,7 +56,7 @@ Player::~Player()
QTMovie* Player::getMovie()
{
- assert( mpMovie );
+ OSL_ASSERT( mpMovie );
return mpMovie;
}
diff --git a/basctl/source/basicide/baside3.cxx b/basctl/source/basicide/baside3.cxx
index 8e30691a7093..550bcd3637e9 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -891,7 +891,7 @@ bool implImportDialog( vcl::Window* pWin, const OUString& rCurPath, const Script
{}
}
bool bValidName = !aXmlDlgName.isEmpty();
- assert( bValidName );
+ OSL_ASSERT( bValidName );
if( !bValidName )
return bDone;
@@ -934,7 +934,7 @@ bool implImportDialog( vcl::Window* pWin, const OUString& rCurPath, const Script
Shell* pShell = GetShell();
if (!pShell)
{
- assert(pShell);
+ OSL_ASSERT(pShell);
return bDone;
}
diff --git a/basegfx/source/range/b2drangeclipper.cxx b/basegfx/source/range/b2drangeclipper.cxx
index c4fdd5a57075..41dfb46585a0 100644
--- a/basegfx/source/range/b2drangeclipper.cxx
+++ b/basegfx/source/range/b2drangeclipper.cxx
@@ -737,7 +737,7 @@ namespace basegfx
if( nCurrPolyIdx == -1 )
nCurrPolyIdx=first->getTargetPolygonIndex();
- assert(nCurrPolyIdx != -1);
+ OSL_ASSERT(nCurrPolyIdx != -1);
// second encounter of my rect -> second edge
// encountered, done
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx
index 5ebf732eabe9..fdfcb75ccf5c 100644
--- a/basic/source/classes/sbunoobj.cxx
+++ b/basic/source/classes/sbunoobj.cxx
@@ -754,7 +754,7 @@ void unoToSbxValue( SbxVariable* pVar, const Any& aValue )
typelib_TypeDescription * pTD = nullptr;
aType.getDescription( &pTD );
- assert( pTD && pTD->eTypeClass == typelib_TypeClass_SEQUENCE );
+ OSL_ASSERT( pTD && pTD->eTypeClass == typelib_TypeClass_SEQUENCE );
Type aElementType( reinterpret_cast<typelib_IndirectTypeDescription *>(pTD)->pType );
::typelib_typedescription_release( pTD );
@@ -1321,7 +1321,7 @@ Any sbxToUnoValue( const SbxValue* pVar, const Type& rType, Property* pUnoProper
OUString aClassName = xIdlTargetClass->getName();
typelib_TypeDescription * pSeqTD = nullptr;
typelib_typedescription_getByName( &pSeqTD, aClassName.pData );
- assert( pSeqTD );
+ OSL_ASSERT( pSeqTD );
Type aElemType( reinterpret_cast<typelib_IndirectTypeDescription *>(pSeqTD)->pType );
// convert all array member and register them
@@ -1362,7 +1362,7 @@ Any sbxToUnoValue( const SbxValue* pVar, const Type& rType, Property* pUnoProper
{
OUString aTypeName = aCurType.getTypeName();
typelib_typedescription_getByName( &pSeqTD, aTypeName.pData );
- assert( pSeqTD );
+ OSL_ASSERT( pSeqTD );
if( pSeqTD->eTypeClass == typelib_TypeClass_SEQUENCE )
{
aCurType = Type( reinterpret_cast<typelib_IndirectTypeDescription *>(pSeqTD)->pType );
@@ -4605,7 +4605,7 @@ bool SbModule::createCOMWrapperForIface( Any& o_rRetAny, SbClassModuleObject* pP
}
while( pParentBasic == nullptr && pCurObject != nullptr );
- assert( pParentBasic != nullptr );
+ OSL_ASSERT( pParentBasic != nullptr );
registerComponentToBeDisposedForBasic( xComponent, pParentBasic );
}
diff --git a/basic/source/runtime/dllmgr-x64.cxx b/basic/source/runtime/dllmgr-x64.cxx
index d88f0ecdb589..4c8a0409a635 100644
--- a/basic/source/runtime/dllmgr-x64.cxx
+++ b/basic/source/runtime/dllmgr-x64.cxx
@@ -50,7 +50,7 @@ using namespace css;
Missing support for functions returning structs (see TODO in call()).
Missing support for additional data types (64 bit integers, Any, ...; would
- trigger assert(false) in various switches).
+ trigger OSL_ASSERT(false) in various switches).
It is assumed that the variables passed into SbiDllMgr::Call to represent
the arguments and return value have types that exactly match the Declare
@@ -143,7 +143,7 @@ template< typename T > void add(
}
std::size_t alignment(SbxVariable * variable) {
- assert(variable != nullptr);
+ OSL_ASSERT(variable != nullptr);
if ((variable->GetType() & SbxARRAY) == 0) {
switch (variable->GetType()) {
case SbxINTEGER:
@@ -168,7 +168,7 @@ std::size_t alignment(SbxVariable * variable) {
case SbxBYTE:
return 1;
default:
- assert(false);
+ OSL_ASSERT(false);
return 1;
}
} else {
@@ -190,7 +190,7 @@ SbError marshal(
SbError marshalString(
SbxVariable * variable, bool special, MarshalData & data, void ** buffer)
{
- assert(variable != nullptr && buffer != nullptr);
+ OSL_ASSERT(variable != nullptr && buffer != nullptr);
OString str;
SbError e = convert(variable->GetOUString(), &str);
if (e != ERRCODE_NONE) {
@@ -207,7 +207,7 @@ SbError marshalStruct(
SbxVariable * variable, std::vector< char > & blob, std::size_t offset,
MarshalData & data)
{
- assert(variable != nullptr);
+ OSL_ASSERT(variable != nullptr);
SbxArray * props = dynamic_cast<SbxObject*>( variable->GetObject() )->
GetProperties();
for (sal_uInt16 i = 0; i < props->Count(); ++i) {
@@ -223,7 +223,7 @@ SbError marshalArray(
SbxVariable * variable, std::vector< char > & blob, std::size_t offset,
MarshalData & data)
{
- assert(variable != nullptr);
+ OSL_ASSERT(variable != nullptr);
SbxDimArray * arr = dynamic_cast<SbxDimArray*>( variable->GetObject() );
int dims = arr->GetDims();
std::vector< sal_Int32 > low(dims);
@@ -255,7 +255,7 @@ SbError marshal(
bool outer, SbxVariable * variable, bool special,
std::vector< char > & blob, std::size_t offset, MarshalData & data)
{
- assert(variable != nullptr);
+ OSL_ASSERT(variable != nullptr);
if (!(variable->GetFlags() & SbxFlagBits::Reference)) {
if ((variable->GetType() & SbxARRAY) == 0) {
switch (variable->GetType()) {
@@ -297,7 +297,7 @@ SbError marshal(
add(blob, variable->GetByte(), outer ? 8 : 1, offset);
break;
default:
- assert(false);
+ OSL_ASSERT(false);
break;
}
} else {
@@ -344,7 +344,7 @@ SbError marshal(
break;
}
default:
- assert(false);
+ OSL_ASSERT(false);
break;
}
} else {
@@ -370,7 +370,7 @@ template< typename T > T read(void const ** pointer) {
}
void const * unmarshal(SbxVariable * variable, void const * data) {
- assert(variable != nullptr);
+ OSL_ASSERT(variable != nullptr);
if ((variable->GetType() & SbxARRAY) == 0) {
switch (variable->GetType()) {
case SbxINTEGER:
@@ -408,7 +408,7 @@ void const * unmarshal(SbxVariable * variable, void const * data) {
variable->PutByte(read< sal_uInt8 >(&data));
break;
default:
- assert(false);
+ OSL_ASSERT(false);
break;
}
} else {
@@ -596,7 +596,7 @@ SbError call(
result.PutByte(static_cast< sal_uInt8 >(iRetVal));
break;
default:
- assert(false);
+ OSL_ASSERT(false);
break;
}
for (int i = 1; i < (arguments == nullptr ? 0 : arguments->Count()); ++i) {
@@ -621,7 +621,7 @@ SbError call(
SbError getProcData(HMODULE handle, OUString const & name, ProcData * proc)
{
- assert(proc != nullptr);
+ OSL_ASSERT(proc != nullptr);
if (name.getLength() != 0 && name[0] == '@') { //TODO: "@" vs. "#"???
sal_Int32 n = name.copy(1).toInt32(); //TODO: handle bad input
if (n <= 0 || n > 0xFFFF) {
diff --git a/basic/source/runtime/dllmgr-x86.cxx b/basic/source/runtime/dllmgr-x86.cxx
index 6108e1c8c59a..7cc4c91a8552 100644
--- a/basic/source/runtime/dllmgr-x86.cxx
+++ b/basic/source/runtime/dllmgr-x86.cxx
@@ -51,7 +51,7 @@ using namespace css::uno;
Missing support for functions returning structs (see TODO in call()).
Missing support for additional data types (64 bit integers, Any, ...; would
- trigger assert(false) in various switches).
+ trigger OSL_ASSERT(false) in various switches).
It is assumed that the variables passed into SbiDllMgr::Call to represent
the arguments and return value have types that exactly match the Declare
@@ -151,7 +151,7 @@ template< typename T > void add(
}
std::size_t alignment(SbxVariable * variable) {
- assert(variable != 0);
+ OSL_ASSERT(variable != 0);
if ((variable->GetType() & SbxARRAY) == 0) {
switch (variable->GetType()) {
case SbxINTEGER:
@@ -176,7 +176,7 @@ std::size_t alignment(SbxVariable * variable) {
case SbxBYTE:
return 1;
default:
- assert(false);
+ OSL_ASSERT(false);
return 1;
}
} else {
@@ -198,7 +198,7 @@ SbError marshal(
SbError marshalString(
SbxVariable * variable, bool special, MarshalData & data, void ** buffer)
{
- assert(variable != 0 && buffer != 0);
+ OSL_ASSERT(variable != 0 && buffer != 0);
OString str;
SbError e = convert(variable->GetOUString(), &str);
if (e != ERRCODE_NONE) {
@@ -216,7 +216,7 @@ SbError marshalStruct(
SbxVariable * variable, std::vector< char > & blob, std::size_t offset,
MarshalData & data)
{
- assert(variable != 0);
+ OSL_ASSERT(variable != 0);
SbxArray * props = dynamic_cast<SbxObject*>( variable->GetObject() )->
GetProperties();
for (sal_uInt16 i = 0; i < props->Count(); ++i) {
@@ -232,7 +232,7 @@ SbError marshalArray(
SbxVariable * variable, std::vector< char > & blob, std::size_t offset,
MarshalData & data)
{
- assert(variable != 0);
+ OSL_ASSERT(variable != 0);
SbxDimArray * arr = dynamic_cast<SbxDimArray*>( variable->GetObject() );
int dims = arr->GetDims();
std::vector< sal_Int32 > low(dims);
@@ -264,7 +264,7 @@ SbError marshal(
bool outer, SbxVariable * variable, bool special,
std::vector< char > & blob, std::size_t offset, MarshalData & data)
{
- assert(variable != 0);
+ OSL_ASSERT(variable != 0);
SbxDataType eVarType = variable->GetType();
bool bByVal = !(variable->GetFlags() & SbxFlagBits::Reference);
@@ -312,7 +312,7 @@ SbError marshal(
add(blob, variable->GetByte(), outer ? 4 : 1, offset);
break;
default:
- assert(false);
+ OSL_ASSERT(false);
break;
}
} else {
@@ -359,7 +359,7 @@ SbError marshal(
break;
}
default:
- assert(false);
+ OSL_ASSERT(false);
break;
}
} else {
@@ -385,7 +385,7 @@ template< typename T > T read(void const ** pointer) {
}
void const * unmarshal(SbxVariable * variable, void const * data) {
- assert(variable != 0);
+ OSL_ASSERT(variable != 0);
if ((variable->GetType() & SbxARRAY) == 0) {
switch (variable->GetType()) {
case SbxINTEGER:
@@ -423,7 +423,7 @@ void const * unmarshal(SbxVariable * variable, void const * data) {
variable->PutByte(read< sal_uInt8 >(&data));
break;
default:
- assert(false);
+ OSL_ASSERT(false);
break;
}
} else {
@@ -550,7 +550,7 @@ SbError call(
DllMgr_call32(proc.proc, address(stack), stack.size())));
break;
default:
- assert(false);
+ OSL_ASSERT(false);
break;
}
for (sal_uInt16 i = 1; i < (arguments == 0 ? 0 : arguments->Count()); ++i) {
@@ -575,7 +575,7 @@ SbError call(
SbError getProcData(HMODULE handle, OUString const & name, ProcData * proc)
{
- assert(proc != 0);
+ OSL_ASSERT(proc != 0);
if ( !name.isEmpty() && name[0] == '@' ) { //TODO: "@" vs. "#"???
sal_Int32 n = name.copy(1).toInt32(); //TODO: handle bad input
if (n <= 0 || n > 0xFFFF) {
diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx
index 0cb6b4bbd076..201f873c4742 100644
--- a/basic/source/uno/dlgcont.cxx
+++ b/basic/source/uno/dlgcont.cxx
@@ -206,7 +206,7 @@ void SfxDialogLibraryContainer::storeLibrariesToStorage( const uno::Reference< e
{
// if we cannot get the version then the
// Oasis2OOoTransformer will not be used
- assert(false);
+ OSL_ASSERT(false);
}
}
diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx
index 337089031dce..a27f69ba1085 100644
--- a/canvas/source/cairo/cairo_canvashelper.cxx
+++ b/canvas/source/cairo/cairo_canvashelper.cxx
@@ -663,7 +663,7 @@ namespace cairocanvas
{
int i;
- assert( rColors.getLength() == rStops.getLength() );
+ OSL_ASSERT( rColors.getLength() == rStops.getLength() );
for( i = 0; i < rColors.getLength(); i++ )
{
diff --git a/canvas/source/opengl/ogl_canvashelper.cxx b/canvas/source/opengl/ogl_canvashelper.cxx
index 349e989bfd2b..d2edda651e4f 100644
--- a/canvas/source/opengl/ogl_canvashelper.cxx
+++ b/canvas/source/opengl/ogl_canvashelper.cxx
@@ -193,7 +193,7 @@ namespace oglcanvas
for( sal_Int32 i=0; i<nNumCols; ++i )
*pCurrCol++ = rHelper.getDevice()->getDeviceColorSpace()->convertToARGB(rValues.maColors[i])[0];
- assert(nNumCols == rValues.maStops.getLength());
+ OSL_ASSERT(nNumCols == rValues.maStops.getLength());
switch( rValues.meType )
{
diff --git a/chart2/source/controller/accessibility/AccessibleBase.cxx b/chart2/source/controller/accessibility/AccessibleBase.cxx
index fdfbc5b19ad7..832f48bac59d 100644
--- a/chart2/source/controller/accessibility/AccessibleBase.cxx
+++ b/chart2/source/controller/accessibility/AccessibleBase.cxx
@@ -87,7 +87,7 @@ AccessibleBase::AccessibleBase(
m_bStateSetInitialized( false )
{
// initialize some states
- assert(m_xStateSetHelper.is());
+ OSL_ASSERT( m_xStateSetHelper.is() );
m_xStateSetHelper->AddState( AccessibleStateType::ENABLED );
m_xStateSetHelper->AddState( AccessibleStateType::SHOWING );
m_xStateSetHelper->AddState( AccessibleStateType::VISIBLE );
@@ -97,7 +97,7 @@ AccessibleBase::AccessibleBase(
AccessibleBase::~AccessibleBase()
{
- assert(m_bIsDisposed);
+ OSL_ASSERT( m_bIsDisposed );
}
bool AccessibleBase::CheckDisposeState( bool bThrowException /* default: true */ ) const
@@ -177,14 +177,14 @@ bool AccessibleBase::NotifyEvent( EventType eEventType, const AccessibleUniqueId
void AccessibleBase::AddState( sal_Int16 aState )
{
CheckDisposeState();
- assert(m_xStateSetHelper.is());
+ OSL_ASSERT( m_xStateSetHelper.is() );
m_xStateSetHelper->AddState( aState );
}
void AccessibleBase::RemoveState( sal_Int16 aState )
{
CheckDisposeState();
- assert(m_xStateSetHelper.is());
+ OSL_ASSERT( m_xStateSetHelper.is() );
m_xStateSetHelper->RemoveState( aState );
}
diff --git a/chart2/source/controller/accessibility/AccessibleChartElement.cxx b/chart2/source/controller/accessibility/AccessibleChartElement.cxx
index 6f113bf7fec8..b231b030c56a 100644
--- a/chart2/source/controller/accessibility/AccessibleChartElement.cxx
+++ b/chart2/source/controller/accessibility/AccessibleChartElement.cxx
@@ -55,7 +55,7 @@ AccessibleChartElement::AccessibleChartElement(
AccessibleChartElement::~AccessibleChartElement()
{
- assert(CheckDisposeState(false /* don't throw exceptions */));
+ OSL_ASSERT( CheckDisposeState( false /* don't throw exceptions */ ) );
}
// ________ protected ________
diff --git a/chart2/source/controller/accessibility/AccessibleChartShape.cxx b/chart2/source/controller/accessibility/AccessibleChartShape.cxx
index c12a8f59a974..2757cef19cb2 100644
--- a/chart2/source/controller/accessibility/AccessibleChartShape.cxx
+++ b/chart2/source/controller/accessibility/AccessibleChartShape.cxx
@@ -65,7 +65,7 @@ AccessibleChartShape::AccessibleChartShape(
AccessibleChartShape::~AccessibleChartShape()
{
- assert(CheckDisposeState(false /* don't throw exceptions */));
+ OSL_ASSERT( CheckDisposeState( false /* don't throw exceptions */ ) );
if ( m_pAccShape.is() )
{
diff --git a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
index 4d3b90e6c0a9..4493a48c647d 100644
--- a/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/ChartDataWrapper.cxx
@@ -582,7 +582,7 @@ void ChartDataWrapper::fireChartDataChangeEvent( css::chart::ChartDataChangeEven
return;
uno::Reference< uno::XInterface > xSrc( static_cast< cppu::OWeakObject* >( this ));
- assert(xSrc.is());
+ OSL_ASSERT( xSrc.is());
if( xSrc.is() )
aEvent.Source = xSrc;
@@ -625,7 +625,7 @@ void ChartDataWrapper::applyData( lcl_Operator& rDataOperator )
bool bPercent = false;
bool bDeep = false;
uno::Reference< css::chart::XChartDocument > xOldDoc( xChartDoc, uno::UNO_QUERY );
- assert(xOldDoc.is());
+ OSL_ASSERT( xOldDoc.is());
uno::Reference< beans::XPropertySet > xDiaProp( xOldDoc->getDiagram(), uno::UNO_QUERY );
if( xDiaProp.is())
{
@@ -659,7 +659,7 @@ void ChartDataWrapper::applyData( lcl_Operator& rDataOperator )
switchToInternalDataProvider();
rDataOperator.apply(m_xDataAccess);
uno::Reference< chart2::data::XDataProvider > xDataProvider( xChartDoc->getDataProvider() );
- assert(xDataProvider.is());
+ OSL_ASSERT( xDataProvider.is() );
if( !xDataProvider.is() )
return;
uno::Reference< chart2::data::XDataSource > xSource( xDataProvider->createDataSource( aArguments ) );
diff --git a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx
index 8cc1550658b7..5c03301bb21c 100644
--- a/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/TitleWrapper.cxx
@@ -273,8 +273,8 @@ Reference< beans::XPropertySet > TitleWrapper::getFirstCharacterPropertySet()
void TitleWrapper::getFastCharacterPropertyValue( sal_Int32 nHandle, Any& rValue )
{
- assert( FAST_PROPERTY_ID_START_CHAR_PROP <= nHandle &&
- nHandle < CharacterProperties::FAST_PROPERTY_ID_END_CHAR_PROP );
+ OSL_ASSERT( FAST_PROPERTY_ID_START_CHAR_PROP <= nHandle &&
+ nHandle < CharacterProperties::FAST_PROPERTY_ID_END_CHAR_PROP );
Reference< beans::XPropertySet > xProp( getFirstCharacterPropertySet(), uno::UNO_QUERY );
Reference< beans::XFastPropertySet > xFastProp( xProp, uno::UNO_QUERY );
@@ -296,8 +296,8 @@ void TitleWrapper::getFastCharacterPropertyValue( sal_Int32 nHandle, Any& rValue
void TitleWrapper::setFastCharacterPropertyValue(
sal_Int32 nHandle, const Any& rValue )
{
- assert( FAST_PROPERTY_ID_START_CHAR_PROP <= nHandle &&
- nHandle < CharacterProperties::FAST_PROPERTY_ID_END_CHAR_PROP );
+ OSL_ASSERT( FAST_PROPERTY_ID_START_CHAR_PROP <= nHandle &&
+ nHandle < CharacterProperties::FAST_PROPERTY_ID_END_CHAR_PROP );
Reference< chart2::XTitle > xTitle( this->getTitleObject() );
if( xTitle.is())
diff --git a/chart2/source/controller/dialogs/DataBrowser.cxx b/chart2/source/controller/dialogs/DataBrowser.cxx
index b694d54d45be..4548d3b6f4df 100644
--- a/chart2/source/controller/dialogs/DataBrowser.cxx
+++ b/chart2/source/controller/dialogs/DataBrowser.cxx
@@ -636,7 +636,7 @@ void DataBrowser::RenewTable()
OUString DataBrowser::GetColString( sal_Int32 nColumnId ) const
{
- assert(m_apDataBrowserModel.get());
+ OSL_ASSERT( m_apDataBrowserModel.get());
if( nColumnId > 0 )
return OUString( m_apDataBrowserModel->getRoleOfColumn( nColumnId - 1 ));
return OUString();
@@ -694,7 +694,7 @@ OUString DataBrowser::GetCellText( long nRow, sal_uInt16 nColumnId ) const
}
else
{
- assert(m_apDataBrowserModel->getCellType( nColIndex ) == DataBrowserModel::TEXT);
+ OSL_ASSERT( m_apDataBrowserModel->getCellType( nColIndex ) == DataBrowserModel::TEXT );
aResult = m_apDataBrowserModel->getCellText( nColIndex, nRow );
}
}
diff --git a/chart2/source/controller/dialogs/DataBrowserModel.cxx b/chart2/source/controller/dialogs/DataBrowserModel.cxx
index 50610be8ca39..875137f1f576 100644
--- a/chart2/source/controller/dialogs/DataBrowserModel.cxx
+++ b/chart2/source/controller/dialogs/DataBrowserModel.cxx
@@ -279,7 +279,7 @@ private:
void DataBrowserModel::insertDataSeries( sal_Int32 nAfterColumnIndex )
{
- assert(m_apDialogModel.get());
+ OSL_ASSERT( m_apDialogModel.get());
Reference< chart2::XInternalDataProvider > xDataProvider(
m_apDialogModel->getDataProvider(), uno::UNO_QUERY );
@@ -400,7 +400,7 @@ void DataBrowserModel::insertComplexCategoryLevel( sal_Int32 nAfterColumnIndex )
{
//create a new text column for complex categories
- assert(m_apDialogModel.get());
+ OSL_ASSERT( m_apDialogModel.get());
Reference< chart2::XInternalDataProvider > xDataProvider( m_apDialogModel->getDataProvider(), uno::UNO_QUERY );
if (!xDataProvider.is())
return;
@@ -438,7 +438,7 @@ void DataBrowserModel::removeComplexCategoryLevel( sal_Int32 nAtColumnIndex )
void DataBrowserModel::removeDataSeriesOrComplexCategoryLevel( sal_Int32 nAtColumnIndex )
{
- assert(m_apDialogModel.get());
+ OSL_ASSERT( m_apDialogModel.get());
if (nAtColumnIndex < 0 || static_cast<size_t>(nAtColumnIndex) >= m_aColumns.size())
// Out of bound.
return;
@@ -509,7 +509,7 @@ void DataBrowserModel::removeDataSeriesOrComplexCategoryLevel( sal_Int32 nAtColu
void DataBrowserModel::swapDataSeries( sal_Int32 nFirstColumnIndex )
{
- assert(m_apDialogModel.get());
+ OSL_ASSERT( m_apDialogModel.get());
if( static_cast< tDataColumnVector::size_type >( nFirstColumnIndex ) < m_aColumns.size() - 1 )
{
Reference< chart2::XDataSeries > xSeries( m_aColumns[nFirstColumnIndex].m_xDataSeries );
@@ -523,7 +523,7 @@ void DataBrowserModel::swapDataSeries( sal_Int32 nFirstColumnIndex )
void DataBrowserModel::swapDataPointForAllSeries( sal_Int32 nFirstIndex )
{
- assert(m_apDialogModel.get());
+ OSL_ASSERT( m_apDialogModel.get());
Reference< chart2::XInternalDataProvider > xDataProvider(
m_apDialogModel->getDataProvider(), uno::UNO_QUERY );
// lockControllers
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx
index 94d0e87bec69..e4e74416667a 100644
--- a/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/chart2/source/controller/dialogs/DialogModel.cxx
@@ -829,7 +829,7 @@ void DialogModel::applyInterpretedData(
std::vector< Sequence< Reference< XDataSeries > > > aNewSeries(
ContainerHelper::SequenceToVector( rNewData.Series ));
- assert(aSeriesCnt.size() == aNewSeries.size());
+ OSL_ASSERT( aSeriesCnt.size() == aNewSeries.size());
std::vector< Sequence< Reference< XDataSeries > > >::const_iterator aSrcIt( aNewSeries.begin());
std::vector< Reference< XDataSeriesContainer > >::iterator aDestIt( aSeriesCnt.begin());
@@ -838,7 +838,7 @@ void DialogModel::applyInterpretedData(
{
try
{
- assert((*aDestIt).is());
+ OSL_ASSERT( (*aDestIt).is());
(*aDestIt)->setDataSeries( *aSrcIt );
}
catch( const uno::Exception & ex )
diff --git a/chart2/source/controller/dialogs/dlg_DataSource.cxx b/chart2/source/controller/dialogs/dlg_DataSource.cxx
index 524bf71dd99f..71867a64cbdc 100644
--- a/chart2/source/controller/dialogs/dlg_DataSource.cxx
+++ b/chart2/source/controller/dialogs/dlg_DataSource.cxx
@@ -189,7 +189,7 @@ void DataSourceDialog::setInvalidPage( TabPage * pTabPage )
if( ! (m_bRangeChooserTabIsValid && m_bDataSourceTabIsValid ))
{
m_pBtnOK->Enable( false );
- assert(m_pTabControl);
+ OSL_ASSERT( m_pTabControl );
// note: there seems to be no suitable mechanism to address pages by
// identifier, at least it is unclear what the page identifiers are.
// @todo: change the fixed numbers to identifiers
@@ -211,7 +211,7 @@ void DataSourceDialog::setValidPage( TabPage * pTabPage )
if( m_bRangeChooserTabIsValid && m_bDataSourceTabIsValid )
{
m_pBtnOK->Enable();
- assert(m_pTabControl);
+ OSL_ASSERT( m_pTabControl );
m_pTabControl->EnableTabToggling();
}
}
diff --git a/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx b/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx
index edcc10b04ee4..6f8cc675d86f 100644
--- a/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx
+++ b/chart2/source/controller/dialogs/dlg_ObjectProperties.cxx
@@ -598,7 +598,7 @@ void SchAttribTabDlg::PageCreated(sal_uInt16 nId, SfxTabPage &rPage)
case TP_XERRORBAR:
{
ErrorBarsTabPage * pTabPage = dynamic_cast< ErrorBarsTabPage * >( &rPage );
- assert(pTabPage);
+ OSL_ASSERT( pTabPage );
if( pTabPage )
{
pTabPage->SetAxisMinorStepWidthForErrorBarDecimals( m_fAxisMinorStepWidthForErrorBarDecimals );
@@ -610,7 +610,7 @@ void SchAttribTabDlg::PageCreated(sal_uInt16 nId, SfxTabPage &rPage)
case TP_YERRORBAR:
{
ErrorBarsTabPage * pTabPage = dynamic_cast< ErrorBarsTabPage * >( &rPage );
- assert(pTabPage);
+ OSL_ASSERT( pTabPage );
if( pTabPage )
{
pTabPage->SetAxisMinorStepWidthForErrorBarDecimals( m_fAxisMinorStepWidthForErrorBarDecimals );
diff --git a/chart2/source/controller/dialogs/res_ErrorBar.cxx b/chart2/source/controller/dialogs/res_ErrorBar.cxx
index 13d2e143c87b..97b5d31a4fe5 100644
--- a/chart2/source/controller/dialogs/res_ErrorBar.cxx
+++ b/chart2/source/controller/dialogs/res_ErrorBar.cxx
@@ -193,7 +193,7 @@ void ErrorBarResources::SetChartDocumentForRangeChoosing(
m_apRangeSelectionHelper.reset( new RangeSelectionHelper( xChartDocument ));
// has internal data provider => rename "cell range" to "from data"
- assert(m_apRangeSelectionHelper.get());
+ OSL_ASSERT( m_apRangeSelectionHelper.get());
if( m_bHasInternalDataProvider )
{
m_pRbRange->SetText(m_pUIStringRbRange->GetText());
@@ -440,10 +440,10 @@ IMPL_LINK_NOARG(ErrorBarResources, IndicatorChanged, Button*, void)
IMPL_LINK( ErrorBarResources, ChooseRange, Button*, pButton, void )
{
- assert(m_apRangeSelectionHelper.get());
+ OSL_ASSERT( m_apRangeSelectionHelper.get());
if( ! m_apRangeSelectionHelper.get())
return;
- assert(m_pCurrentRangeChoosingField == nullptr );
+ OSL_ASSERT( m_pCurrentRangeChoosingField == nullptr );
OUString aUIString;
@@ -680,7 +680,7 @@ void ErrorBarResources::FillValueSets()
void ErrorBarResources::listeningFinished(
const OUString & rNewRange )
{
- assert(m_apRangeSelectionHelper.get());
+ OSL_ASSERT( m_apRangeSelectionHelper.get());
if( ! m_apRangeSelectionHelper.get())
return;
@@ -707,14 +707,14 @@ void ErrorBarResources::listeningFinished(
m_pCurrentRangeChoosingField = nullptr;
UpdateControlStates();
- assert(m_pParentDialog);
+ OSL_ASSERT( m_pParentDialog );
if( m_pParentDialog )
lcl_enableRangeChoosing( false, m_pParentDialog );
}
void ErrorBarResources::disposingRangeSelection()
{
- assert(m_apRangeSelectionHelper.get());
+ OSL_ASSERT( m_apRangeSelectionHelper.get());
if( m_apRangeSelectionHelper.get())
m_apRangeSelectionHelper->stopRangeListening( false );
}
diff --git a/chart2/source/controller/dialogs/tp_DataSource.cxx b/chart2/source/controller/dialogs/tp_DataSource.cxx
index 93820fd687ea..65a97b3d554f 100644
--- a/chart2/source/controller/dialogs/tp_DataSource.cxx
+++ b/chart2/source/controller/dialogs/tp_DataSource.cxx
@@ -566,7 +566,7 @@ IMPL_LINK_NOARG(DataSourceTabPage, RoleSelectionChangedHdl, SvTreeListBox*, void
IMPL_LINK_NOARG(DataSourceTabPage, MainRangeButtonClickedHdl, Button*, void)
{
- assert(m_pCurrentRangeChoosingField == nullptr);
+ OSL_ASSERT( m_pCurrentRangeChoosingField == nullptr );
m_pCurrentRangeChoosingField = m_pEDT_RANGE;
if( !m_pEDT_RANGE->GetText().isEmpty() &&
! updateModelFromControl( m_pCurrentRangeChoosingField ))
@@ -607,7 +607,7 @@ IMPL_LINK_NOARG(DataSourceTabPage, MainRangeButtonClickedHdl, Button*, void)
IMPL_LINK_NOARG(DataSourceTabPage, CategoriesRangeButtonClickedHdl, Button*, void)
{
- assert(m_pCurrentRangeChoosingField == nullptr);
+ OSL_ASSERT( m_pCurrentRangeChoosingField == nullptr );
m_pCurrentRangeChoosingField = m_pEDT_CATEGORIES;
if( !m_pEDT_CATEGORIES->GetText().isEmpty() &&
! updateModelFromControl( m_pCurrentRangeChoosingField ))
diff --git a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
index 432d599cd002..c1005f5e0ef3 100644
--- a/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
+++ b/chart2/source/controller/drawinglayer/DrawViewWrapper.cxx
@@ -342,7 +342,7 @@ void DrawViewWrapper::Notify(SfxBroadcaster& rBC, const SfxHint& rHint)
if( eKind == SdrHintKind::BeginEdit )
{
// #i79965# remember map mode
- assert(!m_bRestoreMapMode);
+ OSL_ASSERT( ! m_bRestoreMapMode );
OutputDevice* pOutDev = this->GetFirstOutputDevice();
if( pOutDev )
{
@@ -353,7 +353,7 @@ void DrawViewWrapper::Notify(SfxBroadcaster& rBC, const SfxHint& rHint)
else if( eKind == SdrHintKind::EndEdit )
{
// #i79965# scroll back view when ending text edit
- assert(m_bRestoreMapMode);
+ OSL_ASSERT( m_bRestoreMapMode );
if( m_bRestoreMapMode )
{
OutputDevice* pOutDev = this->GetFirstOutputDevice();
diff --git a/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx b/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx
index e41664f4f018..4ba0b751ed3d 100644
--- a/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/AxisItemConverter.cxx
@@ -100,7 +100,7 @@ AxisItemConverter::AxisItemConverter(
new CharacterPropertyItemConverter(rPropertySet, rItemPool, pRefSize, "ReferencePageSize"));
m_xAxis.set( Reference< chart2::XAxis >( rPropertySet, uno::UNO_QUERY ) );
- assert(m_xAxis.is());
+ OSL_ASSERT( m_xAxis.is());
}
AxisItemConverter::~AxisItemConverter()
@@ -664,7 +664,7 @@ bool AxisItemConverter::ApplySpecialItem( sal_uInt16 nWhichId, const SfxItemSet
if( ! aScale.IncrementData.SubIncrements[0].IntervalCount.hasValue() ||
aScale.IncrementData.SubIncrements[0].IntervalCount != aValue )
{
- assert(aValue.getValueTypeClass() == uno::TypeClass_LONG);
+ OSL_ASSERT( aValue.getValueTypeClass() == uno::TypeClass_LONG );
aScale.IncrementData.SubIncrements[0].IntervalCount = aValue;
bSetScale = true;
}
diff --git a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
index c68666cf5941..b37123747c28 100644
--- a/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/ErrorBarItemConverter.cxx
@@ -298,7 +298,7 @@ bool ErrorBarItemConverter::ApplySpecialItem(
{
// no data range for error bars yet => create
uno::Reference< chart2::XInternalDataProvider > xIntDataProvider( xDataProvider, uno::UNO_QUERY );
- assert(xIntDataProvider.is());
+ OSL_ASSERT( xIntDataProvider.is());
if( xIntDataProvider.is())
{
xIntDataProvider->appendSequence();
diff --git a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
index 0a4e1cfed184..a462d20cf88f 100644
--- a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx
@@ -85,8 +85,8 @@ void ItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const
SfxItemPool & rPool = GetItemPool();
assert(pRanges != nullptr);
- assert(m_xPropertySetInfo.is());
- assert(m_xPropertySet.is());
+ OSL_ASSERT( m_xPropertySetInfo.is());
+ OSL_ASSERT( m_xPropertySet.is());
while( (*pRanges) != 0)
{
@@ -95,7 +95,7 @@ void ItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const
sal_uInt16 nEnd = (*pRanges);
++pRanges;
- assert(nBeg <= nEnd);
+ OSL_ASSERT( nBeg <= nEnd );
for( sal_uInt16 nWhich = nBeg; nWhich <= nEnd; ++nWhich )
{
if( GetItemProperty( nWhich, aProperty ))
@@ -166,7 +166,7 @@ bool ItemConverter::ApplySpecialItem(
bool ItemConverter::ApplyItemSet( const SfxItemSet & rItemSet )
{
- assert(m_xPropertySet.is());
+ OSL_ASSERT( m_xPropertySet.is());
bool bItemsChanged = false;
SfxItemIter aIter( rItemSet );
diff --git a/chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx b/chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx
index fd4b2f18b696..ef80018a7bb5 100644
--- a/chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx
@@ -41,7 +41,7 @@ namespace
template <class T, class D>
bool lclConvertToPropertySet(const SfxItemSet& rItemSet, sal_uInt16 nWhichId, const uno::Reference<beans::XPropertySet>& xProperties, const OUString& aPropertyID)
{
- assert(xProperties.is());
+ OSL_ASSERT(xProperties.is());
if( xProperties.is() )
{
T aValue = static_cast<T>(static_cast<const D&>(rItemSet.Get( nWhichId )).GetValue());
@@ -59,7 +59,7 @@ bool lclConvertToPropertySet(const SfxItemSet& rItemSet, sal_uInt16 nWhichId, co
template <class T, class D>
void lclConvertToItemSet(SfxItemSet& rItemSet, sal_uInt16 nWhichId, const uno::Reference<beans::XPropertySet>& xProperties, const OUString& aPropertyID)
{
- assert(xProperties.is());
+ OSL_ASSERT(xProperties.is());
if( xProperties.is() )
{
T aValue = static_cast<T>(static_cast<const D&>(rItemSet.Get( nWhichId )).GetValue());
@@ -72,7 +72,7 @@ void lclConvertToItemSet(SfxItemSet& rItemSet, sal_uInt16 nWhichId, const uno::R
void lclConvertToItemSetDouble(SfxItemSet& rItemSet, sal_uInt16 nWhichId, const uno::Reference<beans::XPropertySet>& xProperties, const OUString& aPropertyID)
{
- assert(xProperties.is());
+ OSL_ASSERT(xProperties.is());
if( xProperties.is() )
{
double aValue = static_cast<const SvxDoubleItem&>(rItemSet.Get( nWhichId )).GetValue();
@@ -142,7 +142,7 @@ bool RegressionCurveItemConverter::ApplySpecialItem(
uno::Reference< chart2::XRegressionCurve > xCurve( GetPropertySet(), uno::UNO_QUERY );
bool bChanged = false;
- assert(xCurve.is());
+ OSL_ASSERT(xCurve.is());
if(!xCurve.is())
return false;
@@ -255,7 +255,7 @@ bool RegressionCurveItemConverter::ApplySpecialItem(
void RegressionCurveItemConverter::FillSpecialItem(sal_uInt16 nWhichId, SfxItemSet& rOutItemSet ) const
{
uno::Reference<chart2::XRegressionCurve> xCurve(GetPropertySet(), uno::UNO_QUERY);
- assert(xCurve.is());
+ OSL_ASSERT(xCurve.is());
if(!xCurve.is())
return;
diff --git a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
index 6defac735041..dc48db2d0fa9 100644
--- a/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/StatisticsItemConverter.cxx
@@ -174,7 +174,7 @@ uno::Reference< beans::XPropertySet > lcl_getCurveProperties(
template <class T, class D>
bool lclConvertToPropertySet(const SfxItemSet& rItemSet, sal_uInt16 nWhichId, const uno::Reference<beans::XPropertySet>& xProperties, const OUString& aPropertyID)
{
- assert(xProperties.is());
+ OSL_ASSERT(xProperties.is());
if( xProperties.is() )
{
T aValue = static_cast<T>(static_cast<const D&>(rItemSet.Get( nWhichId )).GetValue());
@@ -192,7 +192,7 @@ bool lclConvertToPropertySet(const SfxItemSet& rItemSet, sal_uInt16 nWhichId, co
template <class T, class D>
void lclConvertToItemSet(SfxItemSet& rItemSet, sal_uInt16 nWhichId, const uno::Reference<beans::XPropertySet>& xProperties, const OUString& aPropertyID)
{
- assert(xProperties.is());
+ OSL_ASSERT(xProperties.is());
if( xProperties.is() )
{
T aValue = static_cast<T>(static_cast<const D&>(rItemSet.Get( nWhichId )).GetValue());
@@ -205,7 +205,7 @@ void lclConvertToItemSet(SfxItemSet& rItemSet, sal_uInt16 nWhichId, const uno::R
void lclConvertToItemSetDouble(SfxItemSet& rItemSet, sal_uInt16 nWhichId, const uno::Reference<beans::XPropertySet>& xProperties, const OUString& aPropertyID)
{
- assert(xProperties.is());
+ OSL_ASSERT(xProperties.is());
if( xProperties.is() )
{
double aValue = static_cast<const SvxDoubleItem&>(rItemSet.Get( nWhichId )).GetValue();
@@ -582,7 +582,7 @@ bool StatisticsItemConverter::ApplySpecialItem(
{
// no data range for error bars yet => create
uno::Reference< chart2::XInternalDataProvider > xIntDataProvider( xDataProvider, uno::UNO_QUERY );
- assert(xIntDataProvider.is());
+ OSL_ASSERT( xIntDataProvider.is());
if( xIntDataProvider.is())
{
xIntDataProvider->appendSequence();
diff --git a/chart2/source/controller/main/ChartController_Properties.cxx b/chart2/source/controller/main/ChartController_Properties.cxx
index 99b3e95f07d4..b5577ff40f57 100644
--- a/chart2/source/controller/main/ChartController_Properties.cxx
+++ b/chart2/source/controller/main/ChartController_Properties.cxx
@@ -231,7 +231,7 @@ wrapper::ItemConverter* createItemConverter(
if( !ColorPerPointHelper::hasPointOwnColor( xSeriesProp, nPointIndex, xObjectProperties ) )
{
bUseSpecialFillColor = true;
- assert(xDiagram.is());
+ OSL_ASSERT( xDiagram.is());
uno::Reference< XColorScheme > xColorScheme( xDiagram->getDefaultColorScheme() );
if( xColorScheme.is())
nSpecialFillColor = xColorScheme->getColorByIndex( nPointIndex );
diff --git a/chart2/source/controller/main/ChartController_Tools.cxx b/chart2/source/controller/main/ChartController_Tools.cxx
index c32dc95c4b3d..53b7594e412a 100644
--- a/chart2/source/controller/main/ChartController_Tools.cxx
+++ b/chart2/source/controller/main/ChartController_Tools.cxx
@@ -239,7 +239,7 @@ void ChartController::executeDispatch_ScaleText()
ControllerLockGuardUNO aCtlLockGuard( getModel() );
std::unique_ptr<ReferenceSizeProvider> pRefSizeProv(impl_createReferenceSizeProvider());
- assert(pRefSizeProv.get());
+ OSL_ASSERT( pRefSizeProv.get());
if (pRefSizeProv)
pRefSizeProv->toggleAutoResizeState();
@@ -438,7 +438,7 @@ void ChartController::impl_PasteStringAsTextShape( const OUString& rString, cons
{
const Reference< lang::XMultiServiceFactory >& xShapeFactory( pDrawModelWrapper->getShapeFactory() );
const Reference< drawing::XDrawPage >& xDrawPage( pDrawModelWrapper->getMainDrawPage() );
- assert(xShapeFactory.is() && xDrawPage.is());
+ OSL_ASSERT( xShapeFactory.is() && xDrawPage.is() );
if ( xShapeFactory.is() && xDrawPage.is() )
{
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index eb60b009a279..2ad50b7cc088 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -1279,7 +1279,7 @@ bool ChartController::execute_KeyInput( const KeyEvent& rKEvt )
if( ! m_apAccelExecute.get() && m_xFrame.is() && m_xCC.is() )
{
m_apAccelExecute = ::svt::AcceleratorExecute::createAcceleratorHelper();
- assert( m_apAccelExecute.get());
+ OSL_ASSERT( m_apAccelExecute.get());
if( m_apAccelExecute.get() )
m_apAccelExecute->init( m_xCC, m_xFrame );
}
diff --git a/chart2/source/controller/main/ChartModelClone.cxx b/chart2/source/controller/main/ChartModelClone.cxx
index 193ed01cce71..937a11f168b1 100644
--- a/chart2/source/controller/main/ChartModelClone.cxx
+++ b/chart2/source/controller/main/ChartModelClone.cxx
@@ -160,7 +160,7 @@ namespace chart
void ImplApplyDataToModel( const Reference< XModel >& i_model, const Reference< XInternalDataProvider > & i_data )
{
Reference< XChartDocument > xDoc( i_model, UNO_QUERY );
- assert(xDoc.is() && xDoc->hasInternalDataProvider());
+ OSL_ASSERT( xDoc.is() && xDoc->hasInternalDataProvider() );
// copy data from stored internal data provider
if( xDoc.is() && xDoc->hasInternalDataProvider())
diff --git a/chart2/source/controller/main/CommandDispatch.cxx b/chart2/source/controller/main/CommandDispatch.cxx
index 30c7e797418b..42beadb65f8d 100644
--- a/chart2/source/controller/main/CommandDispatch.cxx
+++ b/chart2/source/controller/main/CommandDispatch.cxx
@@ -86,7 +86,7 @@ void SAL_CALL CommandDispatch::addStatusListener( const Reference< frame::XStatu
m_aListeners.begin(),
tListenerMap::value_type( URL.Complete, new ::comphelper::OInterfaceContainerHelper2( m_aMutex )));
}
- assert(aIt != m_aListeners.end());
+ OSL_ASSERT( aIt != m_aListeners.end());
aIt->second->addInterface( Control );
fireStatusEvent( URL.Complete, Control );
diff --git a/chart2/source/controller/main/ControllerCommandDispatch.cxx b/chart2/source/controller/main/ControllerCommandDispatch.cxx
index fd24342f3637..16b1f5902f75 100644
--- a/chart2/source/controller/main/ControllerCommandDispatch.cxx
+++ b/chart2/source/controller/main/ControllerCommandDispatch.cxx
@@ -488,7 +488,7 @@ void ControllerCommandDispatch::initialize()
{
Reference< frame::XModel > xModel( m_xChartController->getModel());
Reference< util::XModifyBroadcaster > xModifyBroadcaster( xModel, uno::UNO_QUERY );
- assert(xModifyBroadcaster.is());
+ OSL_ASSERT( xModifyBroadcaster.is());
if( xModifyBroadcaster.is())
xModifyBroadcaster->addModifyListener( this );
@@ -522,8 +522,8 @@ void ControllerCommandDispatch::updateCommandAvailability()
bool bModelStateIsValid = ( m_apModelState.get() != nullptr );
bool bControllerStateIsValid = ( m_apControllerState.get() != nullptr );
// Model and controller states exist.
- assert(bModelStateIsValid);
- assert(bControllerStateIsValid);
+ OSL_ASSERT( bModelStateIsValid );
+ OSL_ASSERT( bControllerStateIsValid );
// read-only
bool bIsWritable = bModelStateIsValid && (! m_apModelState->bIsReadOnly);
diff --git a/chart2/source/controller/main/ObjectHierarchy.cxx b/chart2/source/controller/main/ObjectHierarchy.cxx
index 78bddb175ff8..3e9fd051127e 100644
--- a/chart2/source/controller/main/ObjectHierarchy.cxx
+++ b/chart2/source/controller/main/ObjectHierarchy.cxx
@@ -778,7 +778,7 @@ bool ObjectKeyNavigation::next()
{
ObjectHierarchy::tChildContainer::const_iterator aIt(
std::find( aSiblings.begin(), aSiblings.end(), getCurrentSelection()));
- assert(aIt != aSiblings.end());
+ OSL_ASSERT( aIt != aSiblings.end());
if( ++aIt == aSiblings.end())
aIt = aSiblings.begin();
setCurrentSelection( *aIt );
@@ -798,7 +798,7 @@ bool ObjectKeyNavigation::previous()
{
ObjectHierarchy::tChildContainer::const_iterator aIt(
std::find( aSiblings.begin(), aSiblings.end(), getCurrentSelection()));
- assert(aIt != aSiblings.end());
+ OSL_ASSERT( aIt != aSiblings.end());
if( aIt == aSiblings.begin())
aIt = aSiblings.end();
--aIt;
@@ -825,7 +825,7 @@ bool ObjectKeyNavigation::down()
if( bResult )
{
ObjectHierarchy::tChildContainer aChildren = aHierarchy.getChildren( getCurrentSelection());
- assert(!aChildren.empty());
+ OSL_ASSERT( !aChildren.empty());
setCurrentSelection( aChildren.front());
}
return bResult;
diff --git a/chart2/source/controller/main/StatusBarCommandDispatch.cxx b/chart2/source/controller/main/StatusBarCommandDispatch.cxx
index 8c921eaeb88e..7b04bb4e4af4 100644
--- a/chart2/source/controller/main/StatusBarCommandDispatch.cxx
+++ b/chart2/source/controller/main/StatusBarCommandDispatch.cxx
@@ -50,7 +50,7 @@ void StatusBarCommandDispatch::initialize()
if( m_xModifiable.is())
{
Reference< util::XModifyBroadcaster > xModifyBroadcaster( m_xModifiable, uno::UNO_QUERY );
- assert(xModifyBroadcaster.is());
+ OSL_ASSERT( xModifyBroadcaster.is());
if( xModifyBroadcaster.is())
xModifyBroadcaster->addModifyListener( this );
}
diff --git a/chart2/source/model/main/Axis.cxx b/chart2/source/model/main/Axis.cxx
index 689ece847e94..69ac5871f21e 100644
--- a/chart2/source/model/main/Axis.cxx
+++ b/chart2/source/model/main/Axis.cxx
@@ -328,10 +328,10 @@ void lcl_CloneSubGrids(
}
(*pDestIt) = xSubGrid;
- assert( pDestIt != pDestEnd );
+ OSL_ASSERT( pDestIt != pDestEnd );
++pDestIt;
}
- assert( pDestIt == pDestEnd );
+ OSL_ASSERT( pDestIt == pDestEnd );
(void)(pDestEnd); // avoid warning
}
diff --git a/chart2/source/model/main/BaseCoordinateSystem.cxx b/chart2/source/model/main/BaseCoordinateSystem.cxx
index 38d8a470811d..38694dcdf0e2 100644
--- a/chart2/source/model/main/BaseCoordinateSystem.cxx
+++ b/chart2/source/model/main/BaseCoordinateSystem.cxx
@@ -228,7 +228,7 @@ Reference< chart2::XAxis > SAL_CALL BaseCoordinateSystem::getAxisByDimension(
if( nDimensionIndex < 0 || nDimensionIndex >= getDimension() )
throw lang::IndexOutOfBoundsException();
- assert(m_aAllAxis.size() == static_cast< size_t >( getDimension()));
+ OSL_ASSERT( m_aAllAxis.size() == static_cast< size_t >( getDimension()));
if( nAxisIndex < 0 || nAxisIndex > this->getMaximumAxisIndexByDimension(nDimensionIndex) )
throw lang::IndexOutOfBoundsException();
@@ -241,7 +241,7 @@ sal_Int32 SAL_CALL BaseCoordinateSystem::getMaximumAxisIndexByDimension( sal_Int
if( nDimensionIndex < 0 || nDimensionIndex >= getDimension() )
throw lang::IndexOutOfBoundsException();
- assert(m_aAllAxis.size() == static_cast< size_t >( getDimension()));
+ OSL_ASSERT( m_aAllAxis.size() == static_cast< size_t >( getDimension()));
sal_Int32 nRet = m_aAllAxis[ nDimensionIndex ].size();
if(nRet)
diff --git a/chart2/source/model/main/ChartModel_Persistence.cxx b/chart2/source/model/main/ChartModel_Persistence.cxx
index c9a8bc6df1a1..834e05c9861c 100644
--- a/chart2/source/model/main/ChartModel_Persistence.cxx
+++ b/chart2/source/model/main/ChartModel_Persistence.cxx
@@ -521,7 +521,7 @@ void SAL_CALL ChartModel::load(
}
else
{
- assert( aMDHelper.ISSET_InputStream );
+ OSL_ASSERT( aMDHelper.ISSET_InputStream );
// convert XInputStream to XStorage via the storage factory
Sequence< uno::Any > aStorageArgs( 2 );
aStorageArgs[0] <<= aMDHelper.InputStream;
diff --git a/chart2/source/model/main/DataPoint.cxx b/chart2/source/model/main/DataPoint.cxx
index 52f26a4e58d8..ec3e3cfe292d 100644
--- a/chart2/source/model/main/DataPoint.cxx
+++ b/chart2/source/model/main/DataPoint.cxx
@@ -196,7 +196,7 @@ void SAL_CALL DataPoint::setFastPropertyValue_NoBroadcast(
ModifyListenerHelper::removeListener( xBroadcaster, m_xModifyEventForwarder );
}
- assert( rValue.getValueType().getTypeClass() == uno::TypeClass_INTERFACE );
+ OSL_ASSERT( rValue.getValueType().getTypeClass() == uno::TypeClass_INTERFACE );
if( rValue.hasValue() &&
(rValue >>= xBroadcaster) &&
xBroadcaster.is())
diff --git a/chart2/source/model/main/DataSeries.cxx b/chart2/source/model/main/DataSeries.cxx
index eb2ee2dbdd3c..6eebded278cb 100644
--- a/chart2/source/model/main/DataSeries.cxx
+++ b/chart2/source/model/main/DataSeries.cxx
@@ -284,7 +284,7 @@ void SAL_CALL DataSeries::setFastPropertyValue_NoBroadcast(
ModifyListenerHelper::removeListener( xBroadcaster, m_xModifyEventForwarder );
}
- assert( rValue.getValueType().getTypeClass() == uno::TypeClass_INTERFACE );
+ OSL_ASSERT( rValue.getValueType().getTypeClass() == uno::TypeClass_INTERFACE );
if( rValue.hasValue() &&
(rValue >>= xBroadcaster) &&
xBroadcaster.is())
diff --git a/chart2/source/model/template/BubbleDataInterpreter.cxx b/chart2/source/model/template/BubbleDataInterpreter.cxx
index b2b7f34edea7..a43356152f7e 100644
--- a/chart2/source/model/template/BubbleDataInterpreter.cxx
+++ b/chart2/source/model/template/BubbleDataInterpreter.cxx
@@ -143,9 +143,9 @@ chart2::InterpretedData SAL_CALL BubbleDataInterpreter::interpretDataSource(
xSeries.set( aSeriesToReUse[nSeriesIndex] );
else
xSeries.set( new DataSeries );
- assert( xSeries.is() );
+ OSL_ASSERT( xSeries.is() );
Reference< data::XDataSink > xSink( xSeries, uno::UNO_QUERY );
- assert( xSink.is() );
+ OSL_ASSERT( xSink.is() );
xSink->setData( comphelper::containerToSequence( aNewData ) );
aSeriesVec.push_back( xSeries );
diff --git a/chart2/source/model/template/CandleStickChartType.cxx b/chart2/source/model/template/CandleStickChartType.cxx
index 45a2f02dabbe..32cae2fa556c 100644
--- a/chart2/source/model/template/CandleStickChartType.cxx
+++ b/chart2/source/model/template/CandleStickChartType.cxx
@@ -304,7 +304,7 @@ void SAL_CALL CandleStickChartType::setFastPropertyValue_NoBroadcast(
ModifyListenerHelper::removeListener( xBroadcaster, m_xModifyEventForwarder );
}
- assert( rValue.getValueType().getTypeClass() == uno::TypeClass_INTERFACE );
+ OSL_ASSERT( rValue.getValueType().getTypeClass() == uno::TypeClass_INTERFACE );
if( rValue.hasValue() &&
(rValue >>= xBroadcaster) &&
xBroadcaster.is())
diff --git a/chart2/source/model/template/ChartTypeManager.cxx b/chart2/source/model/template/ChartTypeManager.cxx
index 1c69a470f298..c98d79760cf9 100644
--- a/chart2/source/model/template/ChartTypeManager.cxx
+++ b/chart2/source/model/template/ChartTypeManager.cxx
@@ -544,7 +544,7 @@ uno::Reference< uno::XInterface > SAL_CALL ChartTypeManager::createInstance(
// break;
case TEMPLATE_NOT_FOUND:
- assert(false);
+ OSL_ASSERT( false );
break;
}
xResult.set( xTemplate, uno::UNO_QUERY );
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx
index 7458458d4047..cc7b5b833145 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -234,7 +234,7 @@ void SAL_CALL ChartTypeTemplate::changeDiagram( const uno::Reference< XDiagram >
DiagramHelper::getChartTypesFromDiagram(xDiagram) );
Reference< XCoordinateSystemContainer > xCoordSysCnt( xDiagram, uno::UNO_QUERY );
- assert(xCoordSysCnt.is());
+ OSL_ASSERT( xCoordSysCnt.is());
if( xCoordSysCnt.is())
{
Sequence< Reference< XCoordinateSystem > > aCooSysSeq(
@@ -466,7 +466,7 @@ void SAL_CALL ChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram
//iterate through all chart types in the current coordinate system
uno::Reference< XChartTypeContainer > xChartTypeContainer( xCooSys, uno::UNO_QUERY );
- assert(xChartTypeContainer.is());
+ OSL_ASSERT( xChartTypeContainer.is());
if( !xChartTypeContainer.is() )
continue;
uno::Sequence< uno::Reference< XChartType > > aChartTypeList( xChartTypeContainer->getChartTypes() );
@@ -476,7 +476,7 @@ void SAL_CALL ChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram
//iterate through all series in this chart type
uno::Reference< XDataSeriesContainer > xDataSeriesContainer( xChartType, uno::UNO_QUERY );
- assert(xDataSeriesContainer.is());
+ OSL_ASSERT( xDataSeriesContainer.is());
if( !xDataSeriesContainer.is() )
continue;
@@ -836,7 +836,7 @@ void ChartTypeTemplate::createChartTypes(
else
{
// reuse existing chart type
- assert(xCT.is());
+ OSL_ASSERT( xCT.is());
Reference< chart2::XDataSeriesContainer > xDSCnt( xCT, uno::UNO_QUERY_THROW );
Sequence< Reference< XDataSeries > > aNewSeriesSeq( xDSCnt->getDataSeries());
sal_Int32 nNewStartIndex = aNewSeriesSeq.getLength();
diff --git a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
index e2c0ddd29eee..f6dd85178eec 100644
--- a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx
@@ -313,7 +313,7 @@ sal_Bool SAL_CALL ColumnLineChartTypeTemplate::matchesTemplate(
xColumnChartType.is() &&
xLineChartType.is())
{
- assert(xColumnChartCooSys.is());
+ OSL_ASSERT( xColumnChartCooSys.is());
// check stackmode of bars
bResult = (xColumnChartCooSys->getDimension() == getDimension());
diff --git a/chart2/source/model/template/ColumnLineDataInterpreter.cxx b/chart2/source/model/template/ColumnLineDataInterpreter.cxx
index 0e8917e1355c..f3000954d5ca 100644
--- a/chart2/source/model/template/ColumnLineDataInterpreter.cxx
+++ b/chart2/source/model/template/ColumnLineDataInterpreter.cxx
@@ -58,7 +58,7 @@ InterpretedData SAL_CALL ColumnLineDataInterpreter::interpretDataSource(
InterpretedData aResult( DataInterpreter::interpretDataSource( xSource, aArguments, aSeriesToReUse ));
// the base class should return one group
- assert( aResult.Series.getLength() == 1 );
+ OSL_ASSERT( aResult.Series.getLength() == 1 );
if( aResult.Series.getLength() == 1 )
{
sal_Int32 nNumberOfSeries = aResult.Series[0].getLength();
diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx
index f67ccbc35e23..57f03562e85d 100644
--- a/chart2/source/model/template/DataInterpreter.cxx
+++ b/chart2/source/model/template/DataInterpreter.cxx
@@ -118,9 +118,9 @@ InterpretedData SAL_CALL DataInterpreter::interpretDataSource(
xSeries.set( aSeriesToReUse[nSeriesIndex] );
else
xSeries.set( new DataSeries );
- assert( xSeries.is() );
+ OSL_ASSERT( xSeries.is() );
Reference< data::XDataSink > xSink( xSeries, uno::UNO_QUERY );
- assert( xSink.is() );
+ OSL_ASSERT( xSink.is() );
xSink->setData( aNewData );
aSeriesVec.push_back( xSeries );
diff --git a/chart2/source/model/template/StockChartTypeTemplate.cxx b/chart2/source/model/template/StockChartTypeTemplate.cxx
index e2938628d8fa..bc29b89ac2b3 100644
--- a/chart2/source/model/template/StockChartTypeTemplate.cxx
+++ b/chart2/source/model/template/StockChartTypeTemplate.cxx
@@ -207,7 +207,7 @@ sal_Int32 StockChartTypeTemplate::getAxisCountByDimension( sal_Int32 nDimension
return 0;
// one or two y-axes depending on volume
- assert( nDimension == 1 );
+ OSL_ASSERT( nDimension == 1 );
bool bHasVolume = false;
getFastPropertyValue( PROP_STOCKCHARTTYPE_TEMPLATE_VOLUME ) >>= bHasVolume;
return bHasVolume ? 2 : 1;
diff --git a/chart2/source/model/template/StockDataInterpreter.cxx b/chart2/source/model/template/StockDataInterpreter.cxx
index c3169299ba6b..b1844f1da84a 100644
--- a/chart2/source/model/template/StockDataInterpreter.cxx
+++ b/chart2/source/model/template/StockDataInterpreter.cxx
@@ -170,9 +170,9 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
// 3. create series with remaining sequences
if( bHasVolume && nRemaining > 1 )
{
- assert( nVolumeSeries > nNumOfFullSeries );
+ OSL_ASSERT( nVolumeSeries > nNumOfFullSeries );
aSequences[nBarGroupIndex][nVolumeSeries - 1].realloc( 1 );
- assert( nDataCount > nSourceIndex );
+ OSL_ASSERT( nDataCount > nSourceIndex );
if( aData[nSourceIndex].is())
SetRole( aData[nSourceIndex]->getValues(), "values-y");
aSequences[nBarGroupIndex][nVolumeSeries - 1][0].set( aData[nSourceIndex] );
@@ -184,10 +184,10 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
// candle-stick
if( nRemaining > 0 )
{
- assert( nCandleStickSeries > nNumOfFullSeries );
+ OSL_ASSERT( nCandleStickSeries > nNumOfFullSeries );
const sal_Int32 nSeriesIndex = nCandleStickSeries - 1;
aSequences[nCandleStickGroupIndex][nSeriesIndex].realloc( nRemaining );
- assert( nDataCount > nSourceIndex );
+ OSL_ASSERT( nDataCount > nSourceIndex );
// 1. low
sal_Int32 nSeqIdx( 0 );
@@ -238,9 +238,9 @@ InterpretedData SAL_CALL StockDataInterpreter::interpretDataSource(
xSeries.set( rSeriesToReUse[nReUsedSeriesIdx] );
else
xSeries.set( new DataSeries );
- assert( xSeries.is() );
+ OSL_ASSERT( xSeries.is() );
Reference< data::XDataSink > xSink( xSeries, uno::UNO_QUERY_THROW );
- assert( xSink.is() );
+ OSL_ASSERT( xSink.is() );
xSink->setData( aSequences[nGroupIndex][nSeriesIdx] );
aResultSeries[nGroupIndex][nSeriesIdx].set( xSeries );
}
@@ -289,7 +289,7 @@ sal_Bool SAL_CALL StockDataInterpreter::isDataCompatible(
// 2. b. candlestick
{
- assert(aInterpretedData.Series.getLength() > (bHasVolume ? 1 : 0));
+ OSL_ASSERT( aInterpretedData.Series.getLength() > (bHasVolume ? 1 : 0));
Sequence< Reference< XDataSeries > > aSeries( aInterpretedData.Series[(bHasVolume ? 1 : 0)] );
if(!aSeries.getLength())
return false;
diff --git a/chart2/source/model/template/XYDataInterpreter.cxx b/chart2/source/model/template/XYDataInterpreter.cxx
index 7c0e37e40b16..c0d05a60ca98 100644
--- a/chart2/source/model/template/XYDataInterpreter.cxx
+++ b/chart2/source/model/template/XYDataInterpreter.cxx
@@ -127,9 +127,9 @@ chart2::InterpretedData SAL_CALL XYDataInterpreter::interpretDataSource(
xSeries.set( aSeriesToReUse[nSeriesIndex] );
else
xSeries.set( new DataSeries );
- assert( xSeries.is() );
+ OSL_ASSERT( xSeries.is() );
Reference< data::XDataSink > xSink( xSeries, uno::UNO_QUERY );
- assert( xSink.is() );
+ OSL_ASSERT( xSink.is() );
xSink->setData( comphelper::containerToSequence( aNewData ) );
aSeriesVec.push_back( xSeries );
diff --git a/chart2/source/tools/AxisHelper.cxx b/chart2/source/tools/AxisHelper.cxx
index d7921c9fb8b1..473d1eed8015 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -351,7 +351,7 @@ Reference< XAxis > AxisHelper::createAxis(
Reference< XAxis > xAxis( xContext->getServiceManager()->createInstanceWithContext(
"com.sun.star.chart2.Axis", xContext ), uno::UNO_QUERY );
- assert( xAxis.is());
+ OSL_ASSERT( xAxis.is());
if( xAxis.is())
{
xCooSys->setAxisByDimension( nDimensionIndex, xAxis, nAxisIndex );
@@ -439,7 +439,7 @@ void AxisHelper::showAxis( sal_Int32 nDimensionIndex, bool bMainAxis
xAxis.set( AxisHelper::createAxis( nDimensionIndex, bMainAxis, xDiagram, xContext, pRefSizeProvider ) );
}
- assert( xAxis.is());
+ OSL_ASSERT( xAxis.is());
if( !bNewAxisCreated ) //default is true already if created
AxisHelper::makeAxisVisible( xAxis );
}
diff --git a/chart2/source/tools/CachedDataSequence.cxx b/chart2/source/tools/CachedDataSequence.cxx
index f1ad78f7fbfc..53c5705d6d44 100644
--- a/chart2/source/tools/CachedDataSequence.cxx
+++ b/chart2/source/tools/CachedDataSequence.cxx
@@ -150,7 +150,7 @@ Sequence< double > CachedDataSequence::Impl_getNumericalData() const
}
else
{
- assert( m_eCurrentDataType == MIXED );
+ OSL_ASSERT( m_eCurrentDataType == MIXED );
const Any * pMixedArray = m_aMixedSequence.getConstArray();
std::transform( pMixedArray, pMixedArray + nSize,
pResultArray,
@@ -180,7 +180,7 @@ Sequence< OUString > CachedDataSequence::Impl_getTextualData() const
}
else
{
- assert( m_eCurrentDataType == MIXED );
+ OSL_ASSERT( m_eCurrentDataType == MIXED );
const Any * pMixedArray = m_aMixedSequence.getConstArray();
std::transform( pMixedArray, pMixedArray + nSize,
pResultArray,
@@ -211,7 +211,7 @@ Sequence< Any > CachedDataSequence::Impl_getMixedData() const
}
else
{
- assert( m_eCurrentDataType == TEXTUAL );
+ OSL_ASSERT( m_eCurrentDataType == TEXTUAL );
const OUString * pMixedArray = m_aTextualSequence.getConstArray();
std::transform( pMixedArray, pMixedArray + nSize,
pResultArray,
diff --git a/chart2/source/tools/CharacterProperties.cxx b/chart2/source/tools/CharacterProperties.cxx
index 223ef040dc4f..663f3b9c96a2 100644
--- a/chart2/source/tools/CharacterProperties.cxx
+++ b/chart2/source/tools/CharacterProperties.cxx
@@ -501,7 +501,7 @@ awt::FontDescriptor CharacterProperties::createFontDescriptorFromPropertySet(
aValues[ i++ ] >>= aResult.Underline;
aValues[ i++ ] >>= aResult.Weight;
aValues[ i++ ] >>= aResult.WordLineMode;
- assert( i == aValues.getLength());
+ OSL_ASSERT( i == aValues.getLength());
return aResult;
}
diff --git a/chart2/source/tools/CommonConverters.cxx b/chart2/source/tools/CommonConverters.cxx
index 3c749d5d57f8..436c1050ac6c 100644
--- a/chart2/source/tools/CommonConverters.cxx
+++ b/chart2/source/tools/CommonConverters.cxx
@@ -421,7 +421,7 @@ uno::Sequence< double > DataSequenceToDoubleSequence(
const uno::Reference< data::XDataSequence >& xDataSequence )
{
uno::Sequence< double > aResult;
- assert( xDataSequence.is());
+ OSL_ASSERT( xDataSequence.is());
if(!xDataSequence.is())
return aResult;
diff --git a/chart2/source/tools/ConfigColorScheme.cxx b/chart2/source/tools/ConfigColorScheme.cxx
index b61b84d29f45..e4792d415ecf 100644
--- a/chart2/source/tools/ConfigColorScheme.cxx
+++ b/chart2/source/tools/ConfigColorScheme.cxx
@@ -125,7 +125,7 @@ void ConfigColorScheme::retrieveConfigColors()
new impl::ChartConfigItem( *this ));
m_apChartConfigItem->addPropertyNotification( aSeriesPropName );
}
- assert( m_apChartConfigItem.get());
+ OSL_ASSERT( m_apChartConfigItem.get());
if( ! m_apChartConfigItem.get())
return;
diff --git a/chart2/source/tools/DiagramHelper.cxx b/chart2/source/tools/DiagramHelper.cxx
index a5958fa8ddee..3bc8e462a839 100644
--- a/chart2/source/tools/DiagramHelper.cxx
+++ b/chart2/source/tools/DiagramHelper.cxx
@@ -291,7 +291,7 @@ void DiagramHelper::setStackMode(
//iterate through all series in this chart type
uno::Reference< XDataSeriesContainer > xDataSeriesContainer( xChartType, uno::UNO_QUERY );
- assert( xDataSeriesContainer.is());
+ OSL_ASSERT( xDataSeriesContainer.is());
if( !xDataSeriesContainer.is() )
continue;
@@ -380,7 +380,7 @@ StackMode DiagramHelper::getStackModeFromChartType(
chart2::StackingDirection eCurrentDirection = eCommonDirection;
// property is not MAYBEVOID
bool bSuccess = ( xProp->getPropertyValue( "StackingDirection" ) >>= eCurrentDirection );
- assert( bSuccess );
+ OSL_ASSERT( bSuccess );
(void)(bSuccess); // avoid warning in non-debug builds
if( ! bDirectionInitialized )
{
@@ -532,7 +532,7 @@ void DiagramHelper::replaceCoordinateSystem(
const Reference< XCoordinateSystem > & xCooSysToReplace,
const Reference< XCoordinateSystem > & xReplacement )
{
- assert( xDiagram.is());
+ OSL_ASSERT( xDiagram.is());
if( ! xDiagram.is())
return;
@@ -645,7 +645,7 @@ uno::Reference< XChartType > DiagramHelper::getChartTypeOfSeries(
//iterate through all chart types in the current coordinate system
uno::Reference< XChartTypeContainer > xChartTypeContainer( xCooSys, uno::UNO_QUERY );
- assert( xChartTypeContainer.is());
+ OSL_ASSERT( xChartTypeContainer.is());
if( !xChartTypeContainer.is() )
continue;
uno::Sequence< uno::Reference< XChartType > > aChartTypeList( xChartTypeContainer->getChartTypes() );
@@ -655,7 +655,7 @@ uno::Reference< XChartType > DiagramHelper::getChartTypeOfSeries(
//iterate through all series in this chart type
uno::Reference< XDataSeriesContainer > xDataSeriesContainer( xChartType, uno::UNO_QUERY );
- assert( xDataSeriesContainer.is());
+ OSL_ASSERT( xDataSeriesContainer.is());
if( !xDataSeriesContainer.is() )
continue;
@@ -781,14 +781,14 @@ std::vector< Reference< XAxis > > lcl_getAxisHoldingCategoriesFromDiagram(
for( sal_Int32 i=0; i<aCooSysSeq.getLength(); ++i )
{
Reference< XCoordinateSystem > xCooSys( aCooSysSeq[i] );
- assert( xCooSys.is());
+ OSL_ASSERT( xCooSys.is());
for( sal_Int32 nN = xCooSys->getDimension(); nN--; )
{
const sal_Int32 nMaximumScaleIndex = xCooSys->getMaximumAxisIndexByDimension(nN);
for(sal_Int32 nI=0; nI<=nMaximumScaleIndex; ++nI)
{
Reference< XAxis > xAxis = xCooSys->getAxisByDimension( nN,nI );
- assert( xAxis.is());
+ OSL_ASSERT( xAxis.is());
if( xAxis.is())
{
ScaleData aScaleData = xAxis->getScaleData();
@@ -828,14 +828,14 @@ bool DiagramHelper::isCategoryDiagram(
for( sal_Int32 i=0; i<aCooSysSeq.getLength(); ++i )
{
Reference< XCoordinateSystem > xCooSys( aCooSysSeq[i] );
- assert( xCooSys.is());
+ OSL_ASSERT( xCooSys.is());
for( sal_Int32 nN = xCooSys->getDimension(); nN--; )
{
const sal_Int32 nMaximumScaleIndex = xCooSys->getMaximumAxisIndexByDimension(nN);
for(sal_Int32 nI=0; nI<=nMaximumScaleIndex; ++nI)
{
Reference< XAxis > xAxis = xCooSys->getAxisByDimension( nN,nI );
- assert( xAxis.is());
+ OSL_ASSERT( xAxis.is());
if( xAxis.is())
{
ScaleData aScaleData = xAxis->getScaleData();
@@ -1314,7 +1314,7 @@ bool lcl_moveSeriesOrCheckIfMoveIsAllowed(
//iterate through all chart types in the current coordinate system
uno::Reference< XChartTypeContainer > xChartTypeContainer( xCooSys, uno::UNO_QUERY );
- assert( xChartTypeContainer.is());
+ OSL_ASSERT( xChartTypeContainer.is());
if( !xChartTypeContainer.is() )
continue;
uno::Sequence< uno::Reference< XChartType > > aChartTypeList( xChartTypeContainer->getChartTypes() );
@@ -1326,7 +1326,7 @@ bool lcl_moveSeriesOrCheckIfMoveIsAllowed(
//iterate through all series in this chart type
uno::Reference< XDataSeriesContainer > xDataSeriesContainer( xCurrentChartType, uno::UNO_QUERY );
- assert( xDataSeriesContainer.is());
+ OSL_ASSERT( xDataSeriesContainer.is());
if( !xDataSeriesContainer.is() )
continue;
diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx
index 2e6e0f8ec8bf..e24695621824 100644
--- a/chart2/source/tools/InternalData.cxx
+++ b/chart2/source/tools/InternalData.cxx
@@ -307,7 +307,7 @@ bool InternalData::enlargeData( sal_Int32 nColumnCount, sal_Int32 nRowCount )
void InternalData::insertColumn( sal_Int32 nAfterIndex )
{
// note: -1 is allowed, as we insert after the given index
- assert( nAfterIndex < m_nColumnCount && nAfterIndex >= -1 );
+ OSL_ASSERT( nAfterIndex < m_nColumnCount && nAfterIndex >= -1 );
if( nAfterIndex >= m_nColumnCount || nAfterIndex < -1 )
return;
sal_Int32 nNewColumnCount = m_nColumnCount + 1;
@@ -364,7 +364,7 @@ sal_Int32 InternalData::getColumnCount() const
void InternalData::insertRow( sal_Int32 nAfterIndex )
{
// note: -1 is allowed, as we insert after the given index
- assert( nAfterIndex < m_nRowCount && nAfterIndex >= -1 );
+ OSL_ASSERT( nAfterIndex < m_nRowCount && nAfterIndex >= -1 );
if( nAfterIndex >= m_nRowCount || nAfterIndex < -1 )
return;
sal_Int32 nNewRowCount = m_nRowCount + 1;
@@ -401,7 +401,7 @@ void InternalData::insertRow( sal_Int32 nAfterIndex )
void InternalData::deleteColumn( sal_Int32 nAtIndex )
{
- assert( nAtIndex < m_nColumnCount && nAtIndex >= 0 );
+ OSL_ASSERT( nAtIndex < m_nColumnCount && nAtIndex >= 0 );
if( nAtIndex >= m_nColumnCount || m_nColumnCount < 1 || nAtIndex < 0 )
return;
sal_Int32 nNewColumnCount = m_nColumnCount - 1;
@@ -435,7 +435,7 @@ void InternalData::deleteColumn( sal_Int32 nAtIndex )
void InternalData::deleteRow( sal_Int32 nAtIndex )
{
- assert( nAtIndex < m_nRowCount && nAtIndex >= 0 );
+ OSL_ASSERT( nAtIndex < m_nRowCount && nAtIndex >= 0 );
if( nAtIndex >= m_nRowCount || m_nRowCount < 1 || nAtIndex < 0 )
return;
sal_Int32 nNewRowCount = m_nRowCount - 1;
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx
index da95f3486543..fa77624adc44 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -712,7 +712,7 @@ Reference< chart2::data::XDataSource > SAL_CALL InternalDataProvider::createData
return new DataSource( comphelper::containerToSequence(aComplexCategories) );
}
- assert( aRangeRepresentation == lcl_aCompleteRange );
+ OSL_ASSERT( aRangeRepresentation == lcl_aCompleteRange );
std::vector< Reference< chart2::data::XLabeledDataSequence > > aResultLSeqVec;
@@ -799,7 +799,7 @@ Reference< chart2::data::XDataSequence > SAL_CALL InternalDataProvider::createDa
{
if( aRangeRepresentation.match( lcl_aCategoriesRangeName ))
{
- assert( aRangeRepresentation == lcl_aCategoriesRangeName );//it is not expected nor implemented that only parts of the categories are really requested
+ OSL_ASSERT( aRangeRepresentation == lcl_aCategoriesRangeName );//it is not expected nor implemented that only parts of the categories are really requested
// categories
return createDataSequenceAndAddToMap( lcl_aCategoriesRangeName, lcl_aCategoriesRoleName );
@@ -846,7 +846,7 @@ sal_Bool SAL_CALL InternalDataProvider::hasDataByRangeRepresentation( const OUSt
if( aRange.match( lcl_aCategoriesRangeName ))
{
- assert( aRange == lcl_aCategoriesRangeName );//it is not expected nor implemented that only parts of the categories are really requested
+ OSL_ASSERT( aRange == lcl_aCategoriesRangeName );//it is not expected nor implemented that only parts of the categories are really requested
bResult = true;
}
else if( aRange.match( lcl_aLabelRangePrefix ))
@@ -1155,7 +1155,7 @@ OUString SAL_CALL InternalDataProvider::convertRangeToXML( const OUString& aRang
// @todo: add this information in the range representation strings
if( aRangeRepresentation.match( lcl_aCategoriesRangeName ))
{
- assert( aRangeRepresentation == lcl_aCategoriesRangeName );//it is not expected nor implemented that only parts of the categories are really requested
+ OSL_ASSERT( aRangeRepresentation == lcl_aCategoriesRangeName );//it is not expected nor implemented that only parts of the categories are really requested
aRange.aUpperLeft.bIsEmpty = false;
if( m_bDataInColumns )
{
diff --git a/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx b/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx
index dcd9851b7058..6d662c1d252d 100644
--- a/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx
+++ b/chart2/source/tools/MeanValueRegressionCurveCalculator.cxx
@@ -80,7 +80,7 @@ void SAL_CALL MeanValueRegressionCurveCalculator::recalculateRegression(
fErrorSum += (v*v);
}
}
- assert( fErrorSum >= 0.0 );
+ OSL_ASSERT( fErrorSum >= 0.0 );
m_fCorrelationCoeffitient = sqrt( fErrorSum / (nMax - 1 ));
}
}
diff --git a/chart2/source/tools/PropertyHelper.cxx b/chart2/source/tools/PropertyHelper.cxx
index 5b613629032b..8741037b6014 100644
--- a/chart2/source/tools/PropertyHelper.cxx
+++ b/chart2/source/tools/PropertyHelper.cxx
@@ -41,7 +41,7 @@ struct lcl_EqualsElement : public std::unary_function< OUString, bool >
explicit lcl_EqualsElement( const Any & rValue, const Reference< container::XNameAccess > & xAccess )
: m_aValue( rValue ), m_xAccess( xAccess )
{
- assert( m_xAccess.is());
+ OSL_ASSERT( m_xAccess.is());
}
bool operator() ( const OUString & rName )
@@ -155,7 +155,7 @@ OUString lcl_addNamedPropertyUniqueNameToTable(
aUniqueName = rPrefix + OUString::number( nIndex );
}
- assert( !aUniqueName.isEmpty());
+ OSL_ASSERT( !aUniqueName.isEmpty());
xNameContainer->insertByName( aUniqueName, rValue );
return aUniqueName;
}
diff --git a/chart2/source/tools/RelativePositionHelper.cxx b/chart2/source/tools/RelativePositionHelper.cxx
index 0c7d6171bdf2..a205d75d6448 100644
--- a/chart2/source/tools/RelativePositionHelper.cxx
+++ b/chart2/source/tools/RelativePositionHelper.cxx
@@ -304,7 +304,7 @@ bool RelativePositionHelper::centerGrow(
}
// anchor must not be changed
- assert( rInOutPosition.Anchor == aPos.Anchor );
+ OSL_ASSERT( rInOutPosition.Anchor == aPos.Anchor );
if( rInOutPosition.Primary == aPos.Primary &&
rInOutPosition.Secondary == aPos.Secondary &&
diff --git a/chart2/source/tools/ResourceManager.cxx b/chart2/source/tools/ResourceManager.cxx
index 07b27fc61a8c..3f3fb615697a 100644
--- a/chart2/source/tools/ResourceManager.cxx
+++ b/chart2/source/tools/ResourceManager.cxx
@@ -30,7 +30,7 @@ ResMgr & ResourceManager::getResourceManager()
static ResMgr * pResourceManager = nullptr;
if( ! pResourceManager )
pResourceManager = ResMgr::CreateResMgr("chartcontroller");
- assert( pResourceManager );
+ OSL_ASSERT( pResourceManager );
return *pResourceManager;
}
diff --git a/chart2/source/tools/StatisticsHelper.cxx b/chart2/source/tools/StatisticsHelper.cxx
index 94aa4faedd0e..f7f1ff7ef1d8 100644
--- a/chart2/source/tools/StatisticsHelper.cxx
+++ b/chart2/source/tools/StatisticsHelper.cxx
@@ -313,7 +313,7 @@ Reference< beans::XPropertySet > StatisticsHelper::addErrorBars(
xErrorBar.set( new ErrorBar );
}
- assert( xErrorBar.is());
+ OSL_ASSERT( xErrorBar.is());
if( xErrorBar.is())
{
xErrorBar->setPropertyValue( "ErrorBarStyle", uno::Any( nStyle ));
diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx
index 3d94de98e9eb..b3cd9a77c67f 100644
--- a/chart2/source/view/charttypes/Splines.cxx
+++ b/chart2/source/view/charttypes/Splines.cxx
@@ -668,8 +668,8 @@ void SplineCalculater::CalculateBSplines(
// ODF1.2 spec variable k. Causion, k is used as index in the spec in addition.
// nDegree is ODF1.2 file format attribute chart:spline-order and
// ODF1.2 spec variable p
- assert( nResolution > 1 );
- assert( nDegree >= 1 );
+ OSL_ASSERT( nResolution > 1 );
+ OSL_ASSERT( nDegree >= 1 );
// limit the b-spline degree at 15 to prevent insanely large sets of points
sal_uInt32 p = std::min<sal_uInt32>(nDegree, 15);
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 3fee4195e507..38a6bb865730 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -1218,7 +1218,7 @@ void VSeriesPlotter::createRegressionCurveEquationShapes(
const uno::Reference< chart2::XRegressionCurveCalculator > & xRegressionCurveCalculator,
awt::Point aDefaultPos )
{
- assert(xEquationProperties.is());
+ OSL_ASSERT( xEquationProperties.is());
if( !xEquationProperties.is())
return;
@@ -1317,7 +1317,7 @@ void VSeriesPlotter::createRegressionCurveEquationShapes(
xEquationTarget, aFormula.makeStringAndClear(),
aNames, aValues, AbstractShapeFactory::makeTransformation( aScreenPosition2D ));
- assert(xTextShape.is());
+ OSL_ASSERT( xTextShape.is());
if( xTextShape.is())
{
AbstractShapeFactory::setShapeName( xTextShape, rEquationCID );
@@ -2350,7 +2350,7 @@ Reference< drawing::XShape > VSeriesPlotter::createLegendSymbolForPoint(
if( xChild.is())
xChild->setParent( xSeriesProps );
- assert(xPointSet.is());
+ OSL_ASSERT( xPointSet.is());
xPointSet->setPropertyValue(
"Color", uno::Any( m_xColorScheme->getColorByIndex( nPointIndex )));
}
diff --git a/chart2/source/view/main/ChartView.cxx b/chart2/source/view/main/ChartView.cxx
index 4cd9c8362d88..ccaa3f868444 100644
--- a/chart2/source/view/main/ChartView.cxx
+++ b/chart2/source/view/main/ChartView.cxx
@@ -494,7 +494,7 @@ void SeriesPlotterContainer::initializeCooSysAndSeriesPlotter(
//iterate through all coordinate systems
uno::Reference< XCoordinateSystemContainer > xCooSysContainer( xDiagram, uno::UNO_QUERY );
- assert(xCooSysContainer.is());
+ OSL_ASSERT( xCooSysContainer.is());
if( !xCooSysContainer.is())
return;
uno::Reference< XColorScheme > xColorScheme( xDiagram->getDefaultColorScheme());
@@ -507,7 +507,7 @@ void SeriesPlotterContainer::initializeCooSysAndSeriesPlotter(
//iterate through all chart types in the current coordinate system
uno::Reference< XChartTypeContainer > xChartTypeContainer( xCooSys, uno::UNO_QUERY );
- assert(xChartTypeContainer.is());
+ OSL_ASSERT( xChartTypeContainer.is());
if( !xChartTypeContainer.is() )
continue;
uno::Sequence< uno::Reference< XChartType > > aChartTypeList( xChartTypeContainer->getChartTypes() );
@@ -550,7 +550,7 @@ void SeriesPlotterContainer::initializeCooSysAndSeriesPlotter(
pVCooSys->addMinimumAndMaximumSupplier(pPlotter);
uno::Reference< XDataSeriesContainer > xDataSeriesContainer( xChartType, uno::UNO_QUERY );
- assert(xDataSeriesContainer.is());
+ OSL_ASSERT( xDataSeriesContainer.is());
if( !xDataSeriesContainer.is() )
continue;
@@ -3414,7 +3414,7 @@ void ChartView::createShapes3D()
//iterate through all chart types in the current coordinate system
uno::Reference< XChartTypeContainer > xChartTypeContainer( xCooSys, uno::UNO_QUERY );
- assert(xChartTypeContainer.is());
+ OSL_ASSERT( xChartTypeContainer.is());
if( !xChartTypeContainer.is() )
return;
@@ -3437,7 +3437,7 @@ void ChartView::createShapes3D()
}
uno::Reference< XDataSeriesContainer > xDataSeriesContainer( xChartType, uno::UNO_QUERY );
- assert(xDataSeriesContainer.is());
+ OSL_ASSERT( xDataSeriesContainer.is());
if( !xDataSeriesContainer.is() )
return;
diff --git a/chart2/source/view/main/VLegend.cxx b/chart2/source/view/main/VLegend.cxx
index effa91d53028..bf51d0bd64d8 100644
--- a/chart2/source/view/main/VLegend.cxx
+++ b/chart2/source/view/main/VLegend.cxx
@@ -297,7 +297,7 @@ awt::Size lcl_placeLegendEntries(
std::vector< Reference< drawing::XShape > > aTextShapes;
awt::Size aMaxEntryExtent = lcl_createTextShapes( rEntries, xShapeFactory, xTarget, aTextShapes, rTextProperties );
- assert(aTextShapes.size() == rEntries.size());
+ OSL_ASSERT( aTextShapes.size() == rEntries.size());
sal_Int32 nMaxEntryWidth = nXOffset + nSymbolPlusDistanceWidth + aMaxEntryExtent.Width;
sal_Int32 nMaxEntryHeight = nYOffset + aMaxEntryExtent.Height;
diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx
index 14a6d93ef334..a63e1cd6ffe7 100644
--- a/connectivity/source/commontools/dbtools.cxx
+++ b/connectivity/source/commontools/dbtools.cxx
@@ -1987,7 +1987,7 @@ void release(oslInterlockedCount& _refCount,
}
// only the alive ref holds the object
- assert( _refCount == 1 );
+ OSL_ASSERT( _refCount == 1 );
// release the parent in the ~
if (xParent.is())
diff --git a/connectivity/source/cpool/ZPoolCollection.cxx b/connectivity/source/cpool/ZPoolCollection.cxx
index ce33cb7dde00..22ac35d02d9f 100644
--- a/connectivity/source/cpool/ZPoolCollection.cxx
+++ b/connectivity/source/cpool/ZPoolCollection.cxx
@@ -317,7 +317,7 @@ OConnectionPool* OPoolCollection::getConnectionPool(const OUString& _sImplName,
Reference< XInterface > OPoolCollection::createWithProvider(const Reference< XMultiServiceFactory >& _rxConfProvider,
const OUString& _rPath)
{
- assert(_rxConfProvider.is());
+ OSL_ASSERT(_rxConfProvider.is());
Sequence< Any > args(1);
args[0] <<= NamedValue( "nodepath", makeAny(_rPath));
Reference< XInterface > xInterface(
diff --git a/connectivity/source/drivers/dbase/DIndex.cxx b/connectivity/source/drivers/dbase/DIndex.cxx
index c1a8c3e7da2c..283700649dea 100644
--- a/connectivity/source/drivers/dbase/DIndex.cxx
+++ b/connectivity/source/drivers/dbase/DIndex.cxx
@@ -199,7 +199,7 @@ bool ODbaseIndex::ConvertToKey(ONDXKey* rKey, sal_uInt32 nRec, const ORowSetValu
}
catch (Exception&)
{
- assert(false);
+ OSL_ASSERT(false);
return false;
}
return true;
diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx
index b1a5949af405..8a343a3404a9 100644
--- a/connectivity/source/drivers/dbase/DTable.cxx
+++ b/connectivity/source/drivers/dbase/DTable.cxx
@@ -658,7 +658,7 @@ OUString ODbaseTable::getEntry(OConnection* _pConnection,const OUString& _sName
}
catch(const Exception&)
{
- assert(false);
+ OSL_ASSERT(false);
}
return sURL;
}
@@ -2564,7 +2564,7 @@ void ODbaseTable::copyData(ODbaseTable* _pNewTable,sal_Int32 _nPos)
}
else
{
- assert(false);
+ OSL_ASSERT(false);
}
} // for(sal_uInt32 nRowPos = 0; nRowPos < m_aHeader.db_anz;++nRowPos)
}
diff --git a/connectivity/source/drivers/firebird/Driver.cxx b/connectivity/source/drivers/firebird/Driver.cxx
index af4cabf2f4dd..9fe66357e010 100644
--- a/connectivity/source/drivers/firebird/Driver.cxx
+++ b/connectivity/source/drivers/firebird/Driver.cxx
@@ -274,7 +274,7 @@ namespace connectivity
_pObject->dispose();
// only the alive ref holds the object
- assert( _refCount == 1 );
+ OSL_ASSERT( _refCount == 1 );
// release the parent in the ~
if (xParent.is())
diff --git a/connectivity/source/drivers/flat/ETable.cxx b/connectivity/source/drivers/flat/ETable.cxx
index 31e44ca95f20..06ae56b2fea7 100644
--- a/connectivity/source/drivers/flat/ETable.cxx
+++ b/connectivity/source/drivers/flat/ETable.cxx
@@ -486,7 +486,7 @@ OUString OFlatTable::getEntry()
}
catch(const Exception&)
{
- assert(false);
+ OSL_ASSERT(false);
}
return sURL;
}
diff --git a/connectivity/source/drivers/jdbc/JConnection.cxx b/connectivity/source/drivers/jdbc/JConnection.cxx
index 0dca4e127767..fce0c21ccd8e 100644
--- a/connectivity/source/drivers/jdbc/JConnection.cxx
+++ b/connectivity/source/drivers/jdbc/JConnection.cxx
@@ -130,7 +130,7 @@ bool loadClass(
OUString const & classPath, OUString const & name,
LocalRef< jobject > * classLoaderPtr, LocalRef< jclass > * classPtr)
{
- assert(classLoaderPtr != nullptr);
+ OSL_ASSERT(classLoaderPtr != nullptr);
// For any jweak entries still present in the map upon destruction,
// DeleteWeakGlobalRef is not called (which is a leak):
ClassMapData * d =
diff --git a/connectivity/source/drivers/kab/KStatement.cxx b/connectivity/source/drivers/kab/KStatement.cxx
index e3050a50da81..eb80ca6590a7 100644
--- a/connectivity/source/drivers/kab/KStatement.cxx
+++ b/connectivity/source/drivers/kab/KStatement.cxx
@@ -222,7 +222,7 @@ KabCondition *KabCommonStatement::analyseWhereClause(const OSQLParseNode *pParse
lcl_throwError(STR_QUERY_TOO_COMPLEX);
// Unreachable:
- assert(false);
+ OSL_ASSERT(false);
return nullptr;
}
@@ -268,7 +268,7 @@ KabOrder *KabCommonStatement::analyseOrderByClause(const OSQLParseNode *pParseNo
}
lcl_throwError(STR_QUERY_TOO_COMPLEX);
// Unreachable:
- assert(false);
+ OSL_ASSERT(false);
return nullptr;
}
diff --git a/connectivity/source/drivers/kab/kfields.cxx b/connectivity/source/drivers/kab/kfields.cxx
index b9c036670fc9..e86ea64efa4d 100644
--- a/connectivity/source/drivers/kab/kfields.cxx
+++ b/connectivity/source/drivers/kab/kfields.cxx
@@ -79,7 +79,7 @@ sal_uInt32 findKabField(const OUString& columnName)
) );
::dbtools::throwGenericSQLException(sError,nullptr);
// Unreachable:
- assert(false);
+ OSL_ASSERT(false);
return 0;
}
diff --git a/connectivity/source/drivers/macab/MacabStatement.cxx b/connectivity/source/drivers/macab/MacabStatement.cxx
index cac20fa7e341..721bbe36c087 100644
--- a/connectivity/source/drivers/macab/MacabStatement.cxx
+++ b/connectivity/source/drivers/macab/MacabStatement.cxx
@@ -222,7 +222,7 @@ MacabCondition *MacabCommonStatement::analyseWhereClause(const OSQLParseNode *pP
}
impl_throwError(STR_QUERY_TOO_COMPLEX);
// Unreachable:
- assert(false);
+ OSL_ASSERT(false);
return nullptr;
}
@@ -268,7 +268,7 @@ MacabOrder *MacabCommonStatement::analyseOrderByClause(const OSQLParseNode *pPar
}
impl_throwError(STR_QUERY_TOO_COMPLEX);
// Unreachable:
- assert(false);
+ OSL_ASSERT(false);
return nullptr;
}
diff --git a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx
index d3fcf9e2d026..122efca9e511 100644
--- a/connectivity/source/drivers/postgresql/pq_xcontainer.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xcontainer.cxx
@@ -155,7 +155,7 @@ Any Container::getByName( const OUString& aName )
"Element " + aName + " unknown in " + m_type + "-Container",
*this );
}
- assert( ii->second >= 0 && ii->second < (int)m_values.size() );
+ OSL_ASSERT( ii->second >= 0 && ii->second < (int)m_values.size() );
return m_values[ ii->second ];
}
diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx
index 8130cff131b1..b2f1d43a05d9 100644
--- a/connectivity/source/parse/sqlnode.cxx
+++ b/connectivity/source/parse/sqlnode.cxx
@@ -1186,7 +1186,7 @@ OSQLParseNode* OSQLParser::predicateTree(OUString& rErrorMessage, const OUString
}
catch ( Exception& )
{
- assert(false);
+ OSL_ASSERT(false);
}
if (m_nFormatKey && m_xFormatter.is())
diff --git a/cppcanvas/source/mtfrenderer/emfpfont.cxx b/cppcanvas/source/mtfrenderer/emfpfont.cxx
index f618719ade35..2df7981e6ab6 100755
--- a/cppcanvas/source/mtfrenderer/emfpfont.cxx
+++ b/cppcanvas/source/mtfrenderer/emfpfont.cxx
@@ -51,7 +51,7 @@ namespace cppcanvas
s.ReadUInt32(header).ReadFloat(emSize).ReadUInt32(sizeUnit).ReadInt32(fontFlags).ReadUInt32(reserved).ReadUInt32(length);
- assert((header >> 12) == 0xdbc01);
+ OSL_ASSERT((header >> 12) == 0xdbc01);
SAL_INFO("cppcanvas.emf", "EMF+\tfont\nEMF+\theader: 0x" << std::hex << (header >> 12) << " version: 0x" << (header & 0x1fff) << " size: " << std::dec << emSize << " unit: 0x" << std::hex << sizeUnit << std::dec);
SAL_INFO("cppcanvas.emf", "EMF+\tflags: 0x" << std::hex << fontFlags << " reserved: 0x" << reserved << " length: 0x" << std::hex << length << std::dec);
diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx
index 6d264b5806ac..4d4bfb528d61 100644
--- a/cppcanvas/source/mtfrenderer/emfplus.cxx
+++ b/cppcanvas/source/mtfrenderer/emfplus.cxx
@@ -440,7 +440,7 @@ namespace cppcanvas
int length = aStartColor.getLength ();
uno::Sequence< double > aColor (length);
- assert (length == aEndColor.getLength());
+ OSL_ASSERT (length == aEndColor.getLength());
for (int i = 0; i < brush->blendPoints; i++) {
aStops[i] = brush->blendPositions [i];
diff --git a/cppcanvas/source/mtfrenderer/emfpstringformat.cxx b/cppcanvas/source/mtfrenderer/emfpstringformat.cxx
index d23c0173daab..01bbb4aae874 100755
--- a/cppcanvas/source/mtfrenderer/emfpstringformat.cxx
+++ b/cppcanvas/source/mtfrenderer/emfpstringformat.cxx
@@ -52,7 +52,7 @@ namespace cppcanvas
s.ReadFloat(firstTabOffset).ReadInt32(hotkeyPrefix).ReadFloat(leadingMargin).ReadFloat(trailingMargin).ReadFloat(tracking);
s.ReadInt32(trimming).ReadInt32(tabStopCount).ReadInt32(rangeCount);
- assert((header >> 12) == 0xdbc01);
+ OSL_ASSERT((header >> 12) == 0xdbc01);
SAL_INFO("cppcanvas.emf", "EMF+\t string format\nEMF+\theader: 0x" << std::hex << (header >> 12) << " version: 0x" << (header & 0x1fff) << " StringFormatFlags: " << std::dec << stringFormatFlags << " Language: " << language);
SAL_INFO("cppcanvas.emf", "EMF+\t StringAlignment: " << stringAlignment << " LineAlign: " << lineAlign << " DigitSubstitution: " << digitSubstitution << " DigitLanguage: " << digitLanguage);
diff --git a/cppu/source/AffineBridge/AffineBridge.cxx b/cppu/source/AffineBridge/AffineBridge.cxx
index 0ae89bb71582..6d194517bf56 100644
--- a/cppu/source/AffineBridge/AffineBridge.cxx
+++ b/cppu/source/AffineBridge/AffineBridge.cxx
@@ -174,8 +174,8 @@ AffineBridge::~AffineBridge()
void AffineBridge::outerDispatch(bool loop)
{
- assert(m_outerThreadId == osl::Thread::getCurrentIdentifier());
- assert(m_innerThreadId != m_outerThreadId);
+ OSL_ASSERT(m_outerThreadId == osl::Thread::getCurrentIdentifier());
+ OSL_ASSERT(m_innerThreadId != m_outerThreadId);
Msg mm;
@@ -213,8 +213,8 @@ void AffineBridge::outerDispatch(bool loop)
void AffineBridge::innerDispatch()
{
- assert(m_innerThreadId == osl::Thread::getCurrentIdentifier());
- assert(m_innerThreadId != m_outerThreadId);
+ OSL_ASSERT(m_innerThreadId == osl::Thread::getCurrentIdentifier());
+ OSL_ASSERT(m_innerThreadId != m_outerThreadId);
Msg mm;
@@ -275,7 +275,7 @@ void AffineBridge::v_callInto_v(uno_EnvCallee * pCallee, va_list * pParam)
void AffineBridge::v_callOut_v(uno_EnvCallee * pCallee, va_list * pParam)
{
- assert(m_innerThreadId);
+ OSL_ASSERT(m_innerThreadId);
osl::MutexGuard guard(m_innerMutex);
@@ -310,14 +310,14 @@ void AffineBridge::v_enter()
if (!m_enterCount)
m_innerThreadId = osl::Thread::getCurrentIdentifier();
- assert(m_innerThreadId == osl::Thread::getCurrentIdentifier());
+ OSL_ASSERT(m_innerThreadId == osl::Thread::getCurrentIdentifier());
++ m_enterCount;
}
void AffineBridge::v_leave()
{
- assert(m_innerThreadId == osl::Thread::getCurrentIdentifier());
+ OSL_ASSERT(m_innerThreadId == osl::Thread::getCurrentIdentifier());
-- m_enterCount;
if (!m_enterCount)
diff --git a/cppu/source/LogBridge/LogBridge.cxx b/cppu/source/LogBridge/LogBridge.cxx
index b5d72a6771f1..604369d85186 100644
--- a/cppu/source/LogBridge/LogBridge.cxx
+++ b/cppu/source/LogBridge/LogBridge.cxx
@@ -62,7 +62,7 @@ LogBridge::LogBridge()
LogBridge::~LogBridge()
{
- assert(m_count >= 0);
+ OSL_ASSERT(m_count >= 0);
}
void LogBridge::v_callInto_v(uno_EnvCallee * pCallee, va_list * pParam)
@@ -74,7 +74,7 @@ void LogBridge::v_callInto_v(uno_EnvCallee * pCallee, va_list * pParam)
void LogBridge::v_callOut_v(uno_EnvCallee * pCallee, va_list * pParam)
{
- assert(m_count > 0);
+ OSL_ASSERT(m_count > 0);
-- m_count;
pCallee(pParam);
@@ -88,7 +88,7 @@ void LogBridge::v_enter()
{
m_mutex.acquire();
- assert(m_count >= 0);
+ OSL_ASSERT(m_count >= 0);
if (m_count == 0)
m_threadId = osl::Thread::getCurrentIdentifier();
@@ -98,7 +98,7 @@ void LogBridge::v_enter()
void LogBridge::v_leave()
{
- assert(m_count > 0);
+ OSL_ASSERT(m_count > 0);
-- m_count;
if (!m_count)
diff --git a/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx b/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx
index dfafe2b181dc..8f46ce7a875a 100644
--- a/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx
+++ b/cppu/source/helper/purpenv/helper_purpenv_Mapping.cxx
@@ -146,7 +146,7 @@ void Mapping::mapInterface(
uno_Interface * pUnoI,
typelib_InterfaceTypeDescription * pTypeDescr)
{
- assert(ppOut && pTypeDescr);
+ OSL_ASSERT(ppOut && pTypeDescr);
if (*ppOut)
{
(*ppOut)->release(*ppOut);
@@ -160,7 +160,7 @@ void Mapping::mapInterface(
// need to enter environment because of potential "queryInterface" call
rtl_uString * pOId = nullptr;
uno_Environment_invoke(m_from.get(), s_getIdentifier_v, m_from.get(), &pOId, pUnoI);
- assert(pOId);
+ OSL_ASSERT(pOId);
// try to get any known interface from target environment
m_to.get()->pExtEnv->getRegisteredInterface(m_to.get()->pExtEnv, reinterpret_cast<void **>(ppOut), pOId, pTypeDescr);
diff --git a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
index ca0fffd2f4ab..0b81cea8130d 100644
--- a/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
+++ b/cppu/source/helper/purpenv/helper_purpenv_Proxy.cxx
@@ -312,7 +312,7 @@ void Proxy::acquire()
Proxy_free,
m_aOId.pData,
m_pTypeDescr);
- assert(pThis == this);
... etc. - the rest is truncated
More information about the Libreoffice-commits
mailing list