summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/atrfld.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-15 10:14:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-15 13:26:08 +0000
commit2e5ec4f5b6cf295c64598c4284f01814d218c489 (patch)
tree703704f70f86cc24bdc043ff8d16570bb3cb2f59 /sw/source/core/txtnode/atrfld.cxx
parentba27366f3d6bc6b209ecd5c5cb79a9ee5315316a (diff)
Related: #i17171# big xub_Strlen -> sal_Int32 changes
Change-Id: I31bce794c95062abfa1171c13cf565498688b5f3
Diffstat (limited to 'sw/source/core/txtnode/atrfld.cxx')
-rw-r--r--sw/source/core/txtnode/atrfld.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/atrfld.cxx b/sw/source/core/txtnode/atrfld.cxx
index d24a505a28d4..e1477f157969 100644
--- a/sw/source/core/txtnode/atrfld.cxx
+++ b/sw/source/core/txtnode/atrfld.cxx
@@ -491,9 +491,9 @@ void SwTxtInputFld::UpdateFieldContent()
OSL_ENSURE( (*End()) - (*GetStart()) >= 2,
"<SwTxtInputFld::UpdateFieldContent()> - Are CH_TXT_ATR_INPUTFIELDSTART and/or CH_TXT_ATR_INPUTFIELDEND missing?" );
// skip CH_TXT_ATR_INPUTFIELDSTART character
- const xub_StrLen nIdx = (*GetStart()) + 1;
+ const sal_Int32 nIdx = (*GetStart()) + 1;
// skip CH_TXT_ATR_INPUTFIELDEND character
- const xub_StrLen nLen = static_cast<xub_StrLen>(std::max<sal_Int32>( 0, ( (*End()) - 1 - nIdx ) ));
+ const sal_Int32 nLen = static_cast<sal_Int32>(std::max<sal_Int32>( 0, ( (*End()) - 1 - nIdx ) ));
const OUString aNewFieldContent = GetTxtNode().GetExpandTxt( nIdx, nLen );
const SwInputField* pInputFld = dynamic_cast<const SwInputField*>(GetFmtFld().GetField());
@@ -530,7 +530,7 @@ void SwTxtInputFld::UpdateTextNodeContent( const OUString& rNewContent )
// text annotation field
SwTxtAnnotationFld::SwTxtAnnotationFld(
SwFmtFld & rAttr,
- xub_StrLen const nStart,
+ sal_Int32 const nStart,
bool const bInClipboard )
: SwTxtFld( rAttr, nStart, bInClipboard )
{