[Libreoffice] [PATCH] easy hacks replace DBG_ASSERT with OSL_ASSERT in writer (partially)

Jacek Wolszczak shutdownrunner at gmail.com
Wed Oct 6 12:23:17 PDT 2010


Hi,

A patch replacing some DBG_ASSERT with OSL_ASSERT in writer folder, with
some DE->EN translations. Expect more to come.

Just a side question. If I come across something like:

#if OSL_DEBUG_LEVEL > 1
        OSL_ASSERT(aStyles.GetEntryCount() > 0, "Sm : no styles
available");
#endif

can I replace it with since the OSL family of macros are enabled when
you build with debug ( --enable-debug configure option ) : ??
        OSL_ASSERT(aStyles.GetEntryCount() > 0, "Sm : no styles
available");

or not.

Licensed under LGPL3+ of course.

Bye,

Jacek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assert.diff
Type: text/x-patch
Size: 124738 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101006/757d9763/attachment-0001.bin>


More information about the LibreOffice mailing list