[Libreoffice-commits] core.git: sw/source
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 21 20:04:23 UTC 2021
sw/source/filter/ww8/docxattributeoutput.cxx | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
New commits:
commit 58a67e6109a82a24620e179f6f660c1a231f1dd7
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Tue Sep 21 21:12:37 2021 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Tue Sep 21 22:03:45 2021 +0200
Typo: sparatorIndex->separatorIndex
Change-Id: Ie43ef6b231c1cb6dd7be516f47e84c12b5684c40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122403
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index 5da71ff6f820..f764fe980c0c 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -1793,10 +1793,10 @@ void DocxAttributeOutput::DoWritePermissionTagStart(const OUString & permission)
if (permission.startsWith("permission-for-group:", &permissionIdAndName))
{
- const sal_Int32 sparatorIndex = permissionIdAndName.indexOf(':');
- assert(sparatorIndex != -1);
- const OUString permissionId = permissionIdAndName.copy(0, sparatorIndex);
- const OUString permissionName = permissionIdAndName.copy(sparatorIndex + 1);
+ const sal_Int32 separatorIndex = permissionIdAndName.indexOf(':');
+ assert(separatorIndex != -1);
+ const OUString permissionId = permissionIdAndName.copy(0, separatorIndex);
+ const OUString permissionName = permissionIdAndName.copy(separatorIndex + 1);
m_pSerializer->singleElementNS(XML_w, XML_permStart,
FSNS(XML_w, XML_id), BookmarkToWord(permissionId),
@@ -1806,10 +1806,10 @@ void DocxAttributeOutput::DoWritePermissionTagStart(const OUString & permission)
{
auto const ok = permission.startsWith("permission-for-user:", &permissionIdAndName);
assert(ok); (void)ok;
- const sal_Int32 sparatorIndex = permissionIdAndName.indexOf(':');
- assert(sparatorIndex != -1);
- const OUString permissionId = permissionIdAndName.copy(0, sparatorIndex);
- const OUString permissionName = permissionIdAndName.copy(sparatorIndex + 1);
+ const sal_Int32 separatorIndex = permissionIdAndName.indexOf(':');
+ assert(separatorIndex != -1);
+ const OUString permissionId = permissionIdAndName.copy(0, separatorIndex);
+ const OUString permissionName = permissionIdAndName.copy(separatorIndex + 1);
m_pSerializer->singleElementNS(XML_w, XML_permStart,
FSNS(XML_w, XML_id), BookmarkToWord(permissionId),
@@ -1833,9 +1833,9 @@ void DocxAttributeOutput::DoWritePermissionTagEnd(const OUString & permission)
permission.startsWith("permission-for-user:", &permissionIdAndName);
assert(ok); (void)ok;
- const sal_Int32 sparatorIndex = permissionIdAndName.indexOf(':');
- assert(sparatorIndex != -1);
- const OUString permissionId = permissionIdAndName.copy(0, sparatorIndex);
+ const sal_Int32 separatorIndex = permissionIdAndName.indexOf(':');
+ assert(separatorIndex != -1);
+ const OUString permissionId = permissionIdAndName.copy(0, separatorIndex);
m_pSerializer->singleElementNS(XML_w, XML_permEnd,
FSNS(XML_w, XML_id), BookmarkToWord(permissionId));
More information about the Libreoffice-commits
mailing list