summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-12-08 11:57:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-08 11:57:24 +0100
commitd7ddc292b94583942d4990e132bd08bcaee9edf2 (patch)
tree400199249006b47af0a719eafc537a37141bafc4 /include
parente1e4edd4d1aabefb4ef31db3d1478f2165079800 (diff)
use proper struct for trusted authors
instead of passing around a Sequence<String>, there is no need to use UNO types here. Change-Id: I1b9a1b6919f830d8ce29139b4362b979a669d505 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107396 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/unotools/securityoptions.hxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/unotools/securityoptions.hxx b/include/unotools/securityoptions.hxx
index 85ae5e6d1522..7a339a90bcf8 100644
--- a/include/unotools/securityoptions.hxx
+++ b/include/unotools/securityoptions.hxx
@@ -63,17 +63,17 @@ class SAL_WARN_UNUSED UNOTOOLS_DLLPUBLIC SvtSecurityOptions final : public utl::
BlockUntrustedRefererLinks
};
- typedef css::uno::Sequence< OUString > Certificate;
-
- /*
- // MT: Doesn't work for sequence...
struct Certificate
{
OUString SubjectName;
OUString SerialNumber;
OUString RawData;
+
+ bool operator==(const Certificate& other) const
+ {
+ return SubjectName == other.SubjectName && SerialNumber == other.SerialNumber && RawData == other.RawData;
+ }
};
- */
public:
SvtSecurityOptions();
@@ -155,8 +155,8 @@ class SAL_WARN_UNUSED UNOTOOLS_DLLPUBLIC SvtSecurityOptions final : public utl::
bool isTrustedLocationUriForUpdatingLinks(OUString const & uri) const;
- css::uno::Sequence< Certificate > GetTrustedAuthors ( ) const;
- void SetTrustedAuthors ( const css::uno::Sequence< Certificate >& rAuthors );
+ std::vector< Certificate > GetTrustedAuthors() const;
+ void SetTrustedAuthors( const std::vector< Certificate >& rAuthors );
// for bool options only!
bool IsOptionSet ( EOption eOption ) const;