[Libreoffice-commits] core.git: sc/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 31 07:49:51 UTC 2019
sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 0dd56a4a745266dcf88d43150ef1d798619ab522
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Oct 31 08:06:07 2019 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Oct 31 08:49:14 2019 +0100
tdf#125688 avoid OUString construction
Change-Id: I7a48e377fd3b53c79d8a2c5f2dcef3d9ceb6ff00
Reviewed-on: https://gerrit.libreoffice.org/81816
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
index 2a55ef3f12aa..a7f141c832f8 100644
--- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
+++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
@@ -201,9 +201,8 @@ sal_uInt32 ScXMLChangeTrackingImportHelper::GetIDFromString(const OUString& sID)
{
if (sID.startsWith(SC_CHANGE_ID_PREFIX))
{
- OUString sValue(sID.copy(strlen(SC_CHANGE_ID_PREFIX)));
sal_Int32 nValue;
- ::sax::Converter::convertNumber(nValue, sValue);
+ ::sax::Converter::convertNumber(nValue, std::u16string_view(sID).substr(strlen(SC_CHANGE_ID_PREFIX)));
OSL_ENSURE(nValue > 0, "wrong change action ID");
nResult = nValue;
}
More information about the Libreoffice-commits
mailing list