summaryrefslogtreecommitdiff
path: root/vcl/source/edit/textdoc.cxx
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-07-27 22:27:15 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-08-01 19:33:20 +0200
commit69a4c6626c7924cef6ccfcd48a47d3010e5837c8 (patch)
tree483f5e8a3511f86980d294d61f9966456e2eb62c /vcl/source/edit/textdoc.cxx
parent7c7124a51e467b6ab4df4d0a38000aa657c35029 (diff)
sal_uInt16 to sal_Int32
Change-Id: I19785cc516daf03aee8783a23399929785d30c5f
Diffstat (limited to 'vcl/source/edit/textdoc.cxx')
-rw-r--r--vcl/source/edit/textdoc.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx
index 3d3028a9312e..bca417af0558 100644
--- a/vcl/source/edit/textdoc.cxx
+++ b/vcl/source/edit/textdoc.cxx
@@ -163,7 +163,7 @@ TextNode::TextNode( const OUString& rText ) :
{
}
-void TextNode::ExpandAttribs( sal_uInt16 nIndex, sal_uInt16 nNew )
+void TextNode::ExpandAttribs( sal_Int32 nIndex, sal_Int32 nNew )
{
if ( !nNew )
return;
@@ -227,13 +227,13 @@ void TextNode::ExpandAttribs( sal_uInt16 nIndex, sal_uInt16 nNew )
maCharAttribs.ResortAttribs();
}
-void TextNode::CollapsAttribs( sal_uInt16 nIndex, sal_uInt16 nDeleted )
+void TextNode::CollapsAttribs( sal_Int32 nIndex, sal_Int32 nDeleted )
{
if ( !nDeleted )
return;
bool bResort = false;
- sal_uInt16 nEndChanges = nIndex+nDeleted;
+ const sal_Int32 nEndChanges = nIndex+nDeleted;
for ( sal_uInt16 nAttr = 0; nAttr < maCharAttribs.Count(); nAttr++ )
{
@@ -289,25 +289,25 @@ void TextNode::CollapsAttribs( sal_uInt16 nIndex, sal_uInt16 nDeleted )
maCharAttribs.ResortAttribs();
}
-void TextNode::InsertText( sal_uInt16 nPos, const OUString& rText )
+void TextNode::InsertText( sal_Int32 nPos, const OUString& rText )
{
maText = maText.replaceAt( nPos, 0, rText );
ExpandAttribs( nPos, rText.getLength() );
}
-void TextNode::InsertText( sal_uInt16 nPos, sal_Unicode c )
+void TextNode::InsertText( sal_Int32 nPos, sal_Unicode c )
{
maText = maText.replaceAt( nPos, 0, OUString(c) );
ExpandAttribs( nPos, 1 );
}
-void TextNode::RemoveText( sal_uInt16 nPos, sal_uInt16 nChars )
+void TextNode::RemoveText( sal_Int32 nPos, sal_Int32 nChars )
{
maText = maText.replaceAt( nPos, nChars, "" );
CollapsAttribs( nPos, nChars );
}
-TextNode* TextNode::Split( sal_uInt16 nPos, bool bKeepEndingAttribs )
+TextNode* TextNode::Split( sal_Int32 nPos, bool bKeepEndingAttribs )
{
OUString aNewText;
if ( nPos < maText.getLength() )