summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-11-13 15:20:38 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-11-13 15:29:22 +0000
commitb17601a4cbedb5e05e22443459366e604194bb77 (patch)
treec2459a8742cdad71e5fc57e50033c5ead6d35af8
parentfbe0a4a12c44901a203a011c9498a67ee6eda411 (diff)
longparas: these USHRT_MAX are really STRING_LEN
Change-Id: I5b55204c262e9fd0c14a9562351a9a1f8b080cec
-rw-r--r--sw/source/core/edit/edattr.cxx2
-rw-r--r--sw/source/core/fields/expfld.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/edit/edattr.cxx b/sw/source/core/edit/edattr.cxx
index 50b63640c210..29209197b36e 100644
--- a/sw/source/core/edit/edattr.cxx
+++ b/sw/source/core/edit/edattr.cxx
@@ -357,7 +357,7 @@ sal_uInt16 SwEditShell::GetSeqFtnList( SwSeqFldList& rList, bool bEndNotes )
OUString sTxt( rFtn.GetViewNumStr( *mpDoc ));
if( !sTxt.isEmpty() )
sTxt += " ";
- sTxt += pTxtNd->GetExpandTxt( 0, USHRT_MAX );
+ sTxt += pTxtNd->GetExpandTxt( 0, STRING_LEN );
_SeqFldLstElem* pNew = new _SeqFldLstElem( sTxt,
pTxtFtn->GetSeqRefNo() );
diff --git a/sw/source/core/fields/expfld.cxx b/sw/source/core/fields/expfld.cxx
index 21dc62a52a6b..a35d96b975e6 100644
--- a/sw/source/core/fields/expfld.cxx
+++ b/sw/source/core/fields/expfld.cxx
@@ -586,7 +586,7 @@ sal_uInt16 SwSetExpFieldType::GetSeqFldList( SwSeqFldList& rList )
pNd->GetNodes().IsDocNodes() )
{
_SeqFldLstElem* pNew = new _SeqFldLstElem(
- pNd->GetExpandTxt( 0, USHRT_MAX ),
+ pNd->GetExpandTxt( 0, STRING_LEN ),
((SwSetExpField*)pF->GetField())->GetSeqNumber() );
rList.InsertSort( pNew );
}