summaryrefslogtreecommitdiff
path: root/editeng/source/uno
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-21 15:52:45 +0200
committerNoel Grandin <noel@peralex.com>2013-11-22 08:07:19 +0200
commit73342dbb82ba074d01962359dac50fb2aa36cbeb (patch)
treeaddab0397681725810b42ad55ab15be3fdb4c236 /editeng/source/uno
parent071c3f3e93c4c00cf57ce3c382325cd717fed511 (diff)
remove unnecessary RTL_CONSTASCII_STRINGPARAM
A final pass through the code, converting code to use the new OUString and OString methods that can detect string literals. Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
Diffstat (limited to 'editeng/source/uno')
-rw-r--r--editeng/source/uno/unofield.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx
index 13699a6d7d13..6ed87334a977 100644
--- a/editeng/source/uno/unofield.cxx
+++ b/editeng/source/uno/unofield.cxx
@@ -912,10 +912,8 @@ uno::Reference< uno::XInterface > SAL_CALL SvxUnoTextCreateTextField( const OUSt
{
nId = text::textfield::Type::EXTENDED_FILE;
}
- else if (aFieldType.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("docinfo.Title") ) ||
- aFieldType.equalsAsciiL(
- RTL_CONSTASCII_STRINGPARAM("DocInfo.Title") ) )
+ else if (aFieldType == "docinfo.Title" ||
+ aFieldType == "DocInfo.Title" )
{
nId = text::textfield::Type::DOCINFO_TITLE;
}