summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2018-12-29 23:22:18 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2019-01-13 10:59:46 +0100
commit577dbcf52108c37b266557079bab74691cd23fa1 (patch)
treefbe3b2c43253a99343c95d1fd585cd7203005a8a /xmloff
parent604985f83c9cf2d4e6443478a5122a6f9c471c11 (diff)
Avoid index for single getToken call
Change-Id: Id7206487f96792ffe38611c36ac0e0e28bcc59b7 Reviewed-on: https://gerrit.libreoffice.org/66222 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/txtparai.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index 565f4bdd2891..d79a6d85fa34 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -1874,10 +1874,7 @@ XMLParaContext::XMLParaContext(
if( !aCondStyleName.isEmpty() )
sStyleName = aCondStyleName;
else if( !sClassNames.isEmpty() )
- {
- sal_Int32 nDummy = 0;
- sStyleName = sClassNames.getToken( 0, ' ', nDummy );
- }
+ sStyleName = sClassNames.getToken( 0, ' ' );
}
void XMLParaContext::EndElement()