summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-05-02 18:24:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-02 20:46:08 +0200
commitf52d165c887076d6f6ccf928c2be585cfc06058a (patch)
treebe2e256252885a120f5ac78e149e51214c56ebc3 /vcl
parent6549aa9afa7f39b45a0d402d83f4975f37bcc2fb (diff)
sal_uLong->sal_Int32 in TextHint
Change-Id: If8125e1343b74c2216fb8e9f9e1e16669062de14 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115004 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/edit/textdata.cxx2
-rw-r--r--vcl/source/edit/textdoc.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/edit/textdata.cxx b/vcl/source/edit/textdata.cxx
index 79ddb8442d09..5c00cd5ebf0f 100644
--- a/vcl/source/edit/textdata.cxx
+++ b/vcl/source/edit/textdata.cxx
@@ -312,7 +312,7 @@ TextHint::TextHint( SfxHintId Id ) : SfxHint( Id ), mnValue(0)
{
}
-TextHint::TextHint( SfxHintId Id, sal_uLong nValue ) : SfxHint( Id ), mnValue(nValue)
+TextHint::TextHint( SfxHintId Id, sal_Int32 nValue ) : SfxHint( Id ), mnValue(nValue)
{
}
diff --git a/vcl/source/edit/textdoc.cxx b/vcl/source/edit/textdoc.cxx
index cba52bc5d22d..2be8c372c273 100644
--- a/vcl/source/edit/textdoc.cxx
+++ b/vcl/source/edit/textdoc.cxx
@@ -504,7 +504,7 @@ TextPaM TextDoc::ConnectParagraphs( TextNode* pLeft, const TextNode* pRight )
maTextNodes.erase( std::find_if( maTextNodes.begin(), maTextNodes.end(),
[&] (std::unique_ptr<TextNode> const & p) { return p.get() == pRight; } ) );
- sal_uLong nLeft = ::std::find_if( maTextNodes.begin(), maTextNodes.end(),
+ sal_Int32 nLeft = ::std::find_if( maTextNodes.begin(), maTextNodes.end(),
[&] (std::unique_ptr<TextNode> const & p) { return p.get() == pLeft; } )
- maTextNodes.begin();
TextPaM aPaM( nLeft, nPrevLen );