[Libreoffice-commits] .: sw/source
Takeshi Abe
tabe at kemper.freedesktop.org
Sun Jul 10 21:44:43 PDT 2011
sw/source/core/txtnode/txtedt.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 1926fdf54ba0859a09792695723b89d4aa3f5723
Author: Takeshi Abe <tabe at fixedpoint.jp>
Date: Mon Jul 11 13:43:48 2011 +0900
OUString does not have Len()
diff --git a/sw/source/core/txtnode/txtedt.cxx b/sw/source/core/txtnode/txtedt.cxx
index d9977aa..9ea7e4c 100644
--- a/sw/source/core/txtnode/txtedt.cxx
+++ b/sw/source/core/txtnode/txtedt.cxx
@@ -666,7 +666,7 @@ SwScanner::SwScanner( const SwTxtNode& rNd, const rtl::OUString& rTxt,
sal_uInt16 nType, sal_Int32 nStart, sal_Int32 nEnde, sal_Bool bClp )
: rNode( rNd ), rText( rTxt), pLanguage( pLang ), pConversionMap( pConvMap ), nLen( 0 ), nWordType( nType ), bClip( bClp )
{
- OSL_ENSURE( rText.Len(), "SwScanner: EmptyString" );
+ OSL_ENSURE( !rText.isEmpty(), "SwScanner: EmptyString" );
nStartPos = nBegin = nStart;
nEndPos = nEnde;
More information about the Libreoffice-commits
mailing list