diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-11-14 11:49:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-11-14 11:56:47 +0000 |
commit | 4f08dcc0e68fa7da6778706b349a19de1c064531 (patch) | |
tree | b5865efc79501db502e3ac0ff148d4d0cb9ac8f5 /sw | |
parent | acef4b26879f6f8d80c26f6d2ee80667cb6ed388 (diff) |
longparas: safe STRING_NOTFOUND -> -1
Change-Id: Ib60e1f052d15ca49e8cbba48b65a94d273a82170
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/doctxm.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index a9641dd9f4bd..0d77608fcdb8 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -1595,7 +1595,7 @@ void SwTOXBaseSection::GenerateText( sal_uInt16 nArrayIdx, OSL_ENSURE( nLvl < GetTOXForm().GetFormMax(), "invalid FORM_LEVEL"); SvxTabStopItem aTStops( 0, 0, SVX_TAB_ADJUST_DEFAULT, RES_PARATR_TABSTOP ); - xub_StrLen nLinkStartPosition = STRING_NOTFOUND; + sal_Int32 nLinkStartPosition = -1; OUString sLinkCharacterStyle; // default to "Default" character style - which is none OUString sURL; // create an enumerator @@ -1781,7 +1781,7 @@ void SwTOXBaseSection::GenerateText( sal_uInt16 nArrayIdx, case TOKEN_LINK_END: //TODO: only paired start/end tokens are valid - if( STRING_NOTFOUND != nLinkStartPosition) + if (nLinkStartPosition != -1) { SwIndex aIdx( pTOXNd, nLinkStartPosition ); // pTOXNd->Erase( aIdx, SwForm::nFormLinkSttLen ); @@ -1810,7 +1810,7 @@ void SwTOXBaseSection::GenerateText( sal_uInt16 nArrayIdx, pNewLink->aINetFmt.SetINetFmtId(USHRT_MAX); } aLinkArr.push_back(pNewLink); - nLinkStartPosition = STRING_NOTFOUND; + nLinkStartPosition = -1; sLinkCharacterStyle = ""; } break; |