diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-08 13:09:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-09 08:41:11 +0200 |
commit | 95600edeaf48a80a1e84c44b37f4035bc4db3070 (patch) | |
tree | ed62af7a330438526d33ece26606811de365d7ee /include/registry | |
parent | 1f34524746a0849ee2c76241d7ac6934110009fe (diff) |
convert RegValueType to scoped enum
Change-Id: Ic672e75db4d7323760577b19490ffa28d38965b6
Diffstat (limited to 'include/registry')
-rw-r--r-- | include/registry/registry.hxx | 8 | ||||
-rw-r--r-- | include/registry/regtype.h | 18 |
2 files changed, 13 insertions, 13 deletions
diff --git a/include/registry/registry.hxx b/include/registry/registry.hxx index f290d9a96571..2b3ad3298bb4 100644 --- a/include/registry/registry.hxx +++ b/include/registry/registry.hxx @@ -322,7 +322,7 @@ public: RegistryValueList() : m_length(0) , m_pValueList(NULL) - , m_valueType(RG_VALUETYPE_NOT_DEFINED) + , m_valueType(RegValueType::NOT_DEFINED) {} /// Destructor, the internal value list will be freed. @@ -1018,7 +1018,7 @@ inline RegError RegistryKey::getLongListValue(const rtl::OUString& keyName, return ret; } else { - rValueList.setValueList(m_registry, RG_VALUETYPE_LONGLIST, + rValueList.setValueList(m_registry, RegValueType::LONGLIST, pValueList, length); return ret; } @@ -1041,7 +1041,7 @@ inline RegError RegistryKey::getStringListValue(const rtl::OUString& keyName, return ret; } else { - rValueList.setValueList(m_registry, RG_VALUETYPE_STRINGLIST, + rValueList.setValueList(m_registry, RegValueType::STRINGLIST, pValueList, length); return ret; } @@ -1064,7 +1064,7 @@ inline RegError RegistryKey::getUnicodeListValue(const rtl::OUString& keyName, return ret; } else { - rValueList.setValueList(m_registry, RG_VALUETYPE_UNICODELIST, + rValueList.setValueList(m_registry, RegValueType::UNICODELIST, pValueList, length); return ret; } diff --git a/include/registry/regtype.h b/include/registry/regtype.h index 97f4e44479a3..c6fe787cf3af 100644 --- a/include/registry/regtype.h +++ b/include/registry/regtype.h @@ -56,24 +56,24 @@ namespace o3tl to define own data structures and store these types in the registry. The UNO core reflection data is stored as a binary blob in the type registry. */ -enum SAL_DLLPUBLIC_RTTI RegValueType +enum class SAL_DLLPUBLIC_RTTI RegValueType { /// The key has no value or the value type is unknown. - RG_VALUETYPE_NOT_DEFINED, + NOT_DEFINED, /// The key has a value of type long - RG_VALUETYPE_LONG, + LONG, /// The key has a value of type ascii string - RG_VALUETYPE_STRING, + STRING, /// The key has a value of type unicode string - RG_VALUETYPE_UNICODE, + UNICODE, /// The key has a value of type binary - RG_VALUETYPE_BINARY, + BINARY, /// The key has a value of type long list - RG_VALUETYPE_LONGLIST, + LONGLIST, /// The key has a value of type ascii string list - RG_VALUETYPE_STRINGLIST, + STRINGLIST, /// The key has a value of type unicode string list - RG_VALUETYPE_UNICODELIST + UNICODELIST }; /// specifies the possible error codes which can occur using the registry API. |