diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-11-08 09:28:59 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-11-08 14:34:10 +0100 |
commit | 5feed3891782fc158209e04ab7d6c639266bcf6e (patch) | |
tree | 533efe682d729182697006ca39f82b6e311fa89a /editeng/inc/editdoc.hxx | |
parent | 1e8b61d3ab6919aaae0faf2d4db43e3ec0348350 (diff) |
More --enable-debug --disable-assert-always-abort fixes
...which <https://ci.libreoffice.org/job/lo_tb_random_config_linux/>
occasionally stumbles across
Change-Id: I2f28fda7522b2f6b009fc2b64766ec9e43c1ab67
Reviewed-on: https://gerrit.libreoffice.org/63067
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'editeng/inc/editdoc.hxx')
-rw-r--r-- | editeng/inc/editdoc.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx index 881fc474ae33..4e7efff897fa 100644 --- a/editeng/inc/editdoc.hxx +++ b/editeng/inc/editdoc.hxx @@ -229,7 +229,7 @@ public: void Remove(const EditCharAttrib* p); void Remove(sal_Int32 nPos); -#if OSL_DEBUG_LEVEL > 0 +#if OSL_DEBUG_LEVEL > 0 && !defined NDEBUG static void DbgCheckAttribs(CharAttribList const& rAttribs); #endif }; @@ -668,7 +668,7 @@ public: void Append(std::unique_ptr<ParaPortion> p); sal_Int32 Count() const; -#if OSL_DEBUG_LEVEL > 0 +#if OSL_DEBUG_LEVEL > 0 && !defined NDEBUG // temporary: static void DbgCheck(ParaPortionList const&, EditDoc const& rDoc); #endif @@ -826,7 +826,9 @@ inline EditCharAttrib* GetAttrib(CharAttribList::AttribsType& rAttribs, sal_Int3 return (nAttr < static_cast<sal_Int32>(rAttribs.size())) ? rAttribs[nAttr].get() : nullptr; } +#if OSL_DEBUG_LEVEL > 0 && !defined NDEBUG void CheckOrderedList(const CharAttribList::AttribsType& rAttribs); +#endif class EditEngineItemPool : public SfxItemPool { |