diff options
author | Justin Luth <justin_luth@sil.org> | 2020-04-28 10:32:01 +0300 |
---|---|---|
committer | Justin Luth <justin_luth@sil.org> | 2020-04-29 07:21:22 +0200 |
commit | 19ead7b99948fee9557bd569df1dfaf226364287 (patch) | |
tree | c32779f08cfca6c386a0beec8a67ea649dbaa420 | |
parent | 9be543a27ab18427a1c4e66a70cc49b0332b6aa1 (diff) |
cleanup my old asserts looking for problematic docs
No docs found after a year or so.
Change-Id: I303ecc6fa24216c8f1c7ff9fa2bb70c1a84f2292
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93004
Tested-by: Jenkins
Reviewed-by: Justin Luth <justin_luth@sil.org>
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 42859e7a481e..5a5ff4bf395c 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -3913,7 +3913,6 @@ void WW8Export::WriteFormData( const ::sw::mark::IFieldmark& rFieldmark ) { OUString aName; pParameter->second >>= aName; - assert( aName.getLength() < 21 && "jluth seeing if following documentation will cause problems." ); const sal_Int32 nLen = std::min( sal_Int32(20), aName.getLength() ); ffname = aName.copy(0, nLen); } @@ -3991,7 +3990,6 @@ void WW8Export::WriteFormData( const ::sw::mark::IFieldmark& rFieldmark ) { OUString aDefaultText; pParameter->second >>= aDefaultText; - assert( aDefaultText.getLength() < 256 && "jluth seeing if following documentation will cause problems." ); const sal_Int32 nLen = std::min( sal_Int32(255), aDefaultText.getLength() ); ffdeftext = aDefaultText.copy (0, nLen); } @@ -4002,7 +4000,6 @@ void WW8Export::WriteFormData( const ::sw::mark::IFieldmark& rFieldmark ) { sal_uInt16 nLength = 0; pParameter->second >>= nLength; - assert( nLength < 32768 && "jluth seeing if following documentation will cause problems." ); nLength = std::min( sal_uInt16(32767), nLength ); aFieldHeader.cch = nLength; } @@ -4013,7 +4010,6 @@ void WW8Export::WriteFormData( const ::sw::mark::IFieldmark& rFieldmark ) OUString aFormat; pParameter->second >>= aFormat; const sal_Int32 nLen = std::min( sal_Int32(64), aFormat.getLength() ); - assert( nLen < 65 && "jluth seeing if following documentation will cause problems." ); ffformat = aFormat.copy(0, nLen); } } @@ -4047,7 +4043,6 @@ void WW8Export::WriteFormData( const ::sw::mark::IFieldmark& rFieldmark ) { OUString aEntryMacro; pParameter->second >>= aEntryMacro; - assert( aEntryMacro.getLength() < 33 && "jluth seeing if following documentation will cause problems." ); const sal_Int32 nLen = std::min( sal_Int32(32), aEntryMacro.getLength() ); ffentrymcr = aEntryMacro.copy (0, nLen); } @@ -4057,7 +4052,6 @@ void WW8Export::WriteFormData( const ::sw::mark::IFieldmark& rFieldmark ) { OUString aExitMacro; pParameter->second >>= aExitMacro; - assert( aExitMacro.getLength() < 33 && "jluth seeing if following documentation will cause problems." ); const sal_Int32 nLen = std::min( sal_Int32(32), aExitMacro.getLength() ); ffexitmcr = aExitMacro.copy (0, nLen); } |