diff options
Diffstat (limited to 'sw/source/core/text/atrhndl.hxx')
-rw-r--r-- | sw/source/core/text/atrhndl.hxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sw/source/core/text/atrhndl.hxx b/sw/source/core/text/atrhndl.hxx index f5b8f87fe25c..1befde44e5d5 100644 --- a/sw/source/core/text/atrhndl.hxx +++ b/sw/source/core/text/atrhndl.hxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -157,16 +158,16 @@ public: inline const SfxPoolItem& SwAttrHandler::GetDefault( const sal_uInt16 nAttribID ) const { - ASSERT( nAttribID < RES_TXTATR_END, + OSL_ENSURE( nAttribID < RES_TXTATR_END, "this attrib does not ex." ); - ASSERT( pDefaultArray[ StackPos[ nAttribID ] ], "array not initialized" ); + OSL_ENSURE( pDefaultArray[ StackPos[ nAttribID ] ], "array not initialized" ); return *pDefaultArray[ StackPos[ nAttribID ] ]; } inline void SwAttrHandler::ResetFont( SwFont& rFnt ) const { - ASSERT( pFnt, "ResetFont without a font" ); + OSL_ENSURE( pFnt, "ResetFont without a font" ); if ( pFnt ) rFnt = *pFnt; }; @@ -177,3 +178,5 @@ inline const SwFont* SwAttrHandler::GetFont() const }; #endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |