tdf#43157 Replace DBG_ASSERT() with assert() in tabbar.cxx
Change-Id: I6a7cc500c973b09236d90a3bfb044407c58fc2ef Reviewed-on: https://gerrit.libreoffice.org/42142 Reviewed-by: Teodor Mircea Ionita <admin@shinnok.com> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
This commit is contained in:
parent
fc5513f40a
commit
c686dc4f33
@ -1610,10 +1610,9 @@ void TabBar::AddTabClick()
|
||||
void TabBar::InsertPage(sal_uInt16 nPageId, const OUString& rText,
|
||||
TabBarPageBits nBits, sal_uInt16 nPos)
|
||||
{
|
||||
DBG_ASSERT(nPageId, "TabBar::InsertPage(): PageId == 0");
|
||||
DBG_ASSERT(GetPagePos( nPageId ) == PAGE_NOT_FOUND,
|
||||
"TabBar::InsertPage(): PageId already exists");
|
||||
assert ((nBits <= TPB_DISPLAY_NAME_ALLFLAGS) && "TabBar::InsertPage(): Invalid flag set in in nBits");
|
||||
assert (nPageId && "TabBar::InsertPage(): PageId must not be 0");
|
||||
assert ((GetPagePos(nPageId) == PAGE_NOT_FOUND) && "TabBar::InsertPage(): Page already exists");
|
||||
assert ((nBits <= TPB_DISPLAY_NAME_ALLFLAGS) && "TabBar::InsertPage(): Invalid flag set in nBits");
|
||||
|
||||
// create PageItem and insert in the item list
|
||||
ImplTabBarItem* pItem = new ImplTabBarItem( nPageId, rText, nBits );
|
||||
|
Loading…
x
Reference in New Issue
Block a user