diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-16 16:57:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-22 13:31:57 +0200 |
commit | 60bc26354763fa3461db49a3e827da552484150d (patch) | |
tree | 5c66cee43f76f556f9a086a67fa8a6e88750c5d5 /xmloff/inc/txtfldi.hxx | |
parent | 7867e1f1cdd726cb98a236245e3d08557cc3a313 (diff) |
new loplugin:conststringfield
Look for const string fields which can be static, and
mostly convert them to OUStringLiteral
And add a getLength() method to OUStringLiteral to make
the transition easier.
Remove dead code in XclExpRoot::GenerateDefaultEncryptionData,
default password is never empty.
Change-Id: Iae75514d9dbb87289fd5b016222f640abe755091
Reviewed-on: https://gerrit.libreoffice.org/59204
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/inc/txtfldi.hxx')
-rw-r--r-- | xmloff/inc/txtfldi.hxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/xmloff/inc/txtfldi.hxx b/xmloff/inc/txtfldi.hxx index 936c7102b3fb..42aadc741520 100644 --- a/xmloff/inc/txtfldi.hxx +++ b/xmloff/inc/txtfldi.hxx @@ -181,7 +181,6 @@ class XMLSenderFieldImportContext : public XMLTextFieldImportContext sal_Int16 nSubType; /// API subtype for ExtUser field const OUString sPropertyFixed; - const OUString sPropertyFieldSubType; const OUString sPropertyContent; protected: @@ -216,7 +215,6 @@ protected: class XMLAuthorFieldImportContext : public XMLSenderFieldImportContext { bool bAuthorFullName; - const OUString sPropertyAuthorFullName; const OUString sPropertyFixed; const OUString sPropertyContent; @@ -245,8 +243,6 @@ protected: class XMLPlaceholderFieldImportContext : public XMLTextFieldImportContext { - const OUString sPropertyPlaceholderType; - const OUString sPropertyPlaceholder; const OUString sPropertyHint; OUString sDescription; @@ -278,7 +274,6 @@ protected: const OUString sPropertyFixed; const OUString sPropertyDateTimeValue; const OUString sPropertyDateTime; - const OUString sPropertyAdjust; const OUString sPropertyIsDate; const OUString sPropertyIsFixedLanguage; @@ -330,7 +325,6 @@ public: class XMLPageContinuationImportContext : public XMLTextFieldImportContext { const OUString sPropertySubType; - const OUString sPropertyUserText; const OUString sPropertyNumberingType; OUString sString; /// continuation string @@ -390,12 +384,6 @@ public: /** superclass for database fields: handle database and table names */ class XMLDatabaseFieldImportContext : public XMLTextFieldImportContext { - const OUString sPropertyDataBaseName; - const OUString sPropertyDataBaseURL; - const OUString sPropertyTableName; - const OUString sPropertyDataCommandType; - const OUString sPropertyIsVisible; - OUString sDatabaseName; OUString sDatabaseURL; OUString sTableName; @@ -604,8 +592,6 @@ protected: /** import revision field (<text:editing-cycles>) */ class XMLRevisionDocInfoImportContext : public XMLSimpleDocInfoImportContext { - const OUString sPropertyRevision; - public: XMLRevisionDocInfoImportContext(SvXMLImport& rImport, @@ -677,9 +663,6 @@ protected: class XMLConditionalTextImportContext : public XMLTextFieldImportContext { const OUString sPropertyCondition; - const OUString sPropertyTrueContent; - const OUString sPropertyFalseContent; - const OUString sPropertyIsConditionTrue; const OUString sPropertyCurrentPresentation; OUString sCondition; @@ -793,9 +776,6 @@ protected: /** import chapter fields (<text:chapter>) */ class XMLChapterImportContext : public XMLTextFieldImportContext { - const OUString sPropertyChapterFormat; - const OUString sPropertyLevel; - sal_Int16 nFormat; sal_Int8 nLevel; |