Kaydet (Commit) b8fc5aee authored tarafından Chris Sherlock's avatar Chris Sherlock

tdf#43157: convert most of canvas codebase away from OSL_ASSERT to assert

Change-Id: Ie6a5942dcac62a0bc3b589ff0b82922b313f88a8
üst 4aca4ce1
......@@ -663,7 +663,7 @@ namespace cairocanvas
{
int i;
OSL_ASSERT( rColors.getLength() == rStops.getLength() );
assert( rColors.getLength() == rStops.getLength() );
for( i = 0; i < rColors.getLength(); i++ )
{
......
......@@ -193,7 +193,7 @@ namespace oglcanvas
for( sal_Int32 i=0; i<nNumCols; ++i )
*pCurrCol++ = rHelper.getDevice()->getDeviceColorSpace()->convertToARGB(rValues.maColors[i])[0];
OSL_ASSERT(nNumCols == rValues.maStops.getLength());
assert(nNumCols == rValues.maStops.getLength());
switch( rValues.meType )
{
......
......@@ -139,7 +139,7 @@ namespace canvas
// SpriteSurface
virtual void showSprite( const Sprite::Reference& rSprite ) override
{
OSL_ASSERT( rSprite.is() );
assert( rSprite.is() );
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
......@@ -148,7 +148,7 @@ namespace canvas
virtual void hideSprite( const Sprite::Reference& rSprite ) override
{
OSL_ASSERT( rSprite.is() );
assert( rSprite.is() );
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
......@@ -160,7 +160,7 @@ namespace canvas
const ::basegfx::B2DPoint& rNewPos,
const ::basegfx::B2DVector& rSpriteSize ) override
{
OSL_ASSERT( rSprite.is() );
assert( rSprite.is() );
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
......@@ -171,7 +171,7 @@ namespace canvas
const ::basegfx::B2DPoint& rPos,
const ::basegfx::B2DRange& rUpdateArea ) override
{
OSL_ASSERT( rSprite.is() );
assert( rSprite.is() );
typename BaseType::MutexType aGuard( BaseType::m_aMutex );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment