summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtfldi.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/txtfldi.cxx')
-rw-r--r--xmloff/source/text/txtfldi.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx
index 27c63738e5c3..74bcc18dcde0 100644
--- a/xmloff/source/text/txtfldi.cxx
+++ b/xmloff/source/text/txtfldi.cxx
@@ -1042,12 +1042,12 @@ void XMLPlaceholderFieldImportContext::PrepareField(
OUString aContent = GetContent();
sal_Int32 nStart = 0;
sal_Int32 nLength = aContent.getLength();
- if ((nLength > 0) && (aContent.getStr()[0] == '<'))
+ if (aContent.startsWith("<"))
{
--nLength;
++nStart;
}
- if ((nLength > 0) && (aContent.getStr()[aContent.getLength()-1] == '>'))
+ if (aContent.endsWith(">"))
{
--nLength;
}