summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtparai.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/txtparai.cxx')
-rw-r--r--xmloff/source/text/txtparai.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx
index 14a1b9bf7fd7..73b681e525ec 100644
--- a/xmloff/source/text/txtparai.cxx
+++ b/xmloff/source/text/txtparai.cxx
@@ -2385,9 +2385,7 @@ XMLNumberedParaContext::XMLNumberedParaContext(
i_rImport.GetTextImport()->GetTextListHelper() );
if (m_ListId.isEmpty())
{
- OSL_ENSURE( ! i_rImport.GetODFVersion().equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("1.2") ),
- "invalid numbered-paragraph: no list-id (1.2)");
+ OSL_ENSURE( i_rImport.GetODFVersion() != "1.2", "invalid numbered-paragraph: no list-id (1.2)" );
m_ListId = rTextListsHelper.GetNumberedParagraphListId(m_Level,
StyleName);
OSL_ENSURE(!m_ListId.isEmpty(), "numbered-paragraph: no ListId");