diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-08 15:36:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-09 08:41:11 +0200 |
commit | 68b35c75588f5702a142c8232d5e805bfe276c72 (patch) | |
tree | 9574ddac4d603715b04bed6c1c470d419b6b7a64 /registry/source | |
parent | e2931bce34a274167da52792d07b19743d488aa0 (diff) |
convert RTReferenceType to scoped enum
Change-Id: I8320f6f42d5579fbd09450ddca61c4c066de98e4
Diffstat (limited to 'registry/source')
-rw-r--r-- | registry/source/reflread.cxx | 4 | ||||
-rw-r--r-- | registry/source/reflwrit.cxx | 2 | ||||
-rw-r--r-- | registry/source/regimpl.cxx | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx index cfc218d31e25..49f6e4e2a358 100644 --- a/registry/source/reflread.cxx +++ b/registry/source/reflread.cxx @@ -846,7 +846,7 @@ const sal_Char* ReferenceList::getReferenceName(sal_uInt16 index) RTReferenceType ReferenceList::getReferenceType(sal_uInt16 index) { - RTReferenceType refType = RT_REF_INVALID; + RTReferenceType refType = RTReferenceType::INVALID; if ((m_numOfEntries > 0) && (index <= m_numOfEntries)) { @@ -1788,7 +1788,7 @@ RTReferenceType TYPEREG_CALLTYPE typereg_reader_getReferenceSort(void * hEntry, { TypeRegistryEntry* pEntry = static_cast<TypeRegistryEntry*>(hEntry); - if (pEntry == NULL) return RT_REF_INVALID; + if (pEntry == NULL) return RTReferenceType::INVALID; return pEntry->m_pReferences->getReferenceType(index); } diff --git a/registry/source/reflwrit.cxx b/registry/source/reflwrit.cxx index b97b4f36419d..b98c469fd980 100644 --- a/registry/source/reflwrit.cxx +++ b/registry/source/reflwrit.cxx @@ -480,7 +480,7 @@ public: }; ReferenceEntry::ReferenceEntry() - : m_type(RT_REF_INVALID) + : m_type(RTReferenceType::INVALID) , m_access(RTFieldAccess::INVALID) { } diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index 50085b419420..64ad999816bb 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -394,15 +394,15 @@ void dumpType(typereg::Reader const & reader, OString const & indent) { printf("\n"); printf("%s sort: ", indent.getStr()); switch (reader.getReferenceSort(i)) { - case RT_REF_SUPPORTS: + case RTReferenceType::SUPPORTS: printf("supports"); break; - case RT_REF_EXPORTS: + case RTReferenceType::EXPORTS: printf("exports"); break; - case RT_REF_TYPE_PARAMETER: + case RTReferenceType::TYPE_PARAMETER: printf("type parameter"); break; |