diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-08 14:42:11 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-10 19:49:27 +0100 |
commit | 2a8fe7ad8f53abe40f190c735f88887dd192f453 (patch) | |
tree | 42f0294756bb7b2c416eae531c72d9dda22882f0 /sw/source/core/unocore | |
parent | 1cfe06a6ac01d8b16659938be460a1ced78ff870 (diff) |
sw_redlinehide_3: pass layout into SwTextNode::GetExpandText()
Thanks to [loplugin:nullptr] and [loplugin:implicitboolconversion]
for finding one of the call sites; 3 current C++ compilers would
otherwise have implicitly converted the parameters into nonsense
without warning.
Change-Id: I3cf6697b37616570fd56fd32da27752983a66f4a
Diffstat (limited to 'sw/source/core/unocore')
-rw-r--r-- | sw/source/core/unocore/unoport.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unoport.cxx b/sw/source/core/unocore/unoport.cxx index 6275e317caf9..e7bb8572fd4a 100644 --- a/sw/source/core/unocore/unoport.cxx +++ b/sw/source/core/unocore/unoport.cxx @@ -173,7 +173,7 @@ OUString SwXTextPortion::getString() if ( pTextNd ) { const sal_Int32 nStt = rUnoCursor.Start()->nContent.GetIndex(); - aText = pTextNd->GetExpandText( nStt, + aText = pTextNd->GetExpandText(nullptr, nStt, rUnoCursor.End()->nContent.GetIndex() - nStt ); } return aText; |