diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-25 08:14:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-30 12:32:14 +0100 |
commit | 8332d6d8200e8ca1f22dd98d9373efd5a431d09c (patch) | |
tree | dd45d452202998297b8562743ea6345462304d04 /unotools/source/config/securityoptions.cxx | |
parent | d05a4cfbdcece491f7385dbeaa7eca03f2fdc1d5 (diff) |
loplugin:stringviewparam include comparisons with string literals
Change-Id: I8ba1214500dddaf413c506a4b82f43d63cda804b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106559
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/config/securityoptions.cxx')
-rw-r--r-- | unotools/source/config/securityoptions.cxx | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx index 6a99a87ca207..5062653413b9 100644 --- a/unotools/source/config/securityoptions.cxx +++ b/unotools/source/config/securityoptions.cxx @@ -46,27 +46,27 @@ using namespace ::com::sun::star::uno; // xmlsec05 deprecated #define DEFAULT_STAROFFICEBASIC eALWAYS_EXECUTE -#define PROPERTYNAME_SECUREURL "SecureURL" -#define PROPERTYNAME_DOCWARN_SAVEORSEND "WarnSaveOrSendDoc" -#define PROPERTYNAME_DOCWARN_SIGNING "WarnSignDoc" -#define PROPERTYNAME_DOCWARN_PRINT "WarnPrintDoc" -#define PROPERTYNAME_DOCWARN_CREATEPDF "WarnCreatePDF" -#define PROPERTYNAME_DOCWARN_REMOVEPERSONALINFO "RemovePersonalInfoOnSaving" -#define PROPERTYNAME_DOCWARN_RECOMMENDPASSWORD "RecommendPasswordProtection" -#define PROPERTYNAME_CTRLCLICK_HYPERLINK "HyperlinksWithCtrlClick" -#define PROPERTYNAME_BLOCKUNTRUSTEDREFERERLINKS "BlockUntrustedRefererLinks" -#define PROPERTYNAME_MACRO_SECLEVEL "MacroSecurityLevel" -#define PROPERTYNAME_MACRO_TRUSTEDAUTHORS "TrustedAuthors" -#define PROPERTYNAME_MACRO_DISABLE "DisableMacrosExecution" -#define PROPERTYNAME_TRUSTEDAUTHOR_SUBJECTNAME "SubjectName" -#define PROPERTYNAME_TRUSTEDAUTHOR_SERIALNUMBER "SerialNumber" -#define PROPERTYNAME_TRUSTEDAUTHOR_RAWDATA "RawData" +#define PROPERTYNAME_SECUREURL u"SecureURL" +#define PROPERTYNAME_DOCWARN_SAVEORSEND u"WarnSaveOrSendDoc" +#define PROPERTYNAME_DOCWARN_SIGNING u"WarnSignDoc" +#define PROPERTYNAME_DOCWARN_PRINT u"WarnPrintDoc" +#define PROPERTYNAME_DOCWARN_CREATEPDF u"WarnCreatePDF" +#define PROPERTYNAME_DOCWARN_REMOVEPERSONALINFO u"RemovePersonalInfoOnSaving" +#define PROPERTYNAME_DOCWARN_RECOMMENDPASSWORD u"RecommendPasswordProtection" +#define PROPERTYNAME_CTRLCLICK_HYPERLINK u"HyperlinksWithCtrlClick" +#define PROPERTYNAME_BLOCKUNTRUSTEDREFERERLINKS u"BlockUntrustedRefererLinks" +#define PROPERTYNAME_MACRO_SECLEVEL u"MacroSecurityLevel" +#define PROPERTYNAME_MACRO_TRUSTEDAUTHORS u"TrustedAuthors" +#define PROPERTYNAME_MACRO_DISABLE u"DisableMacrosExecution" +#define PROPERTYNAME_TRUSTEDAUTHOR_SUBJECTNAME u"SubjectName" +#define PROPERTYNAME_TRUSTEDAUTHOR_SERIALNUMBER u"SerialNumber" +#define PROPERTYNAME_TRUSTEDAUTHOR_RAWDATA u"RawData" // xmlsec05 deprecated -#define PROPERTYNAME_STAROFFICEBASIC "OfficeBasic" -#define PROPERTYNAME_EXECUTEPLUGINS "ExecutePlugins" -#define PROPERTYNAME_WARNINGENABLED "Warning" -#define PROPERTYNAME_CONFIRMATIONENABLED "Confirmation" +#define PROPERTYNAME_STAROFFICEBASIC u"OfficeBasic" +#define PROPERTYNAME_EXECUTEPLUGINS u"ExecutePlugins" +#define PROPERTYNAME_WARNINGENABLED u"Warning" +#define PROPERTYNAME_CONFIRMATIONENABLED u"Confirmation" // xmlsec05 deprecated #define PROPERTYHANDLE_SECUREURL 0 @@ -147,7 +147,7 @@ class SvtSecurityOptions_Impl : public ConfigItem void SetProperty( sal_Int32 nHandle, const Any& rValue, bool bReadOnly ); void LoadAuthors(); - static sal_Int32 GetHandle( const OUString& rPropertyName ); + static sal_Int32 GetHandle( std::u16string_view rPropertyName ); bool GetOption( SvtSecurityOptions::EOption eOption, bool*& rpValue, bool*& rpRO ); /*-**************************************************************************************************** @@ -457,7 +457,7 @@ void SvtSecurityOptions_Impl::LoadAuthors() m_seqTrustedAuthors = comphelper::containerToSequence(v); } -sal_Int32 SvtSecurityOptions_Impl::GetHandle( const OUString& rName ) +sal_Int32 SvtSecurityOptions_Impl::GetHandle( std::u16string_view rName ) { sal_Int32 nHandle; |