summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-01-05 10:38:39 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-01-05 14:55:40 +0100
commitee2b08ed8a1a6a588b01d6c5e845fc92c651af5d (patch)
tree8d587a373cc136d8d6d5ef2548fcbd8d243fb903 /xmlsecurity/inc
parent9adca57fda39c0e5cfdd7b1d9232ed4bf7f04845 (diff)
xmlsecurity: convert TYPE_...__REFERENCE constants to scoped enum
Change-Id: Ic2248b3bc6460e65bdf4eb30af4f8893a7f0e68d
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r--xmlsecurity/inc/xmlsecurity/sigstruct.hxx13
1 files changed, 8 insertions, 5 deletions
diff --git a/xmlsecurity/inc/xmlsecurity/sigstruct.hxx b/xmlsecurity/inc/xmlsecurity/sigstruct.hxx
index ea0e0f365f7f..f798b3b2db7f 100644
--- a/xmlsecurity/inc/xmlsecurity/sigstruct.hxx
+++ b/xmlsecurity/inc/xmlsecurity/sigstruct.hxx
@@ -29,17 +29,20 @@
/*
* type of reference
*/
-#define TYPE_SAMEDOCUMENT_REFERENCE 1
-#define TYPE_BINARYSTREAM_REFERENCE 2
-#define TYPE_XMLSTREAM_REFERENCE 3
+enum class SignatureReferenceType
+{
+ SAMEDOCUMENT = 1,
+ BINARYSTREAM = 2,
+ XMLSTREAM = 3
+};
struct SignatureReferenceInformation
{
- sal_Int32 nType;
+ SignatureReferenceType nType;
OUString ouURI;
OUString ouDigestValue;
- SignatureReferenceInformation( sal_Int32 type, const OUString& uri )
+ SignatureReferenceInformation( SignatureReferenceType type, const OUString& uri )
{
nType = type;
ouURI = uri;