summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-08 15:36:06 +0200
committerNoel Grandin <noel@peralex.com>2015-04-09 08:41:11 +0200
commit68b35c75588f5702a142c8232d5e805bfe276c72 (patch)
tree9574ddac4d603715b04bed6c1c470d419b6b7a64 /unoidl
parente2931bce34a274167da52792d07b19743d488aa0 (diff)
convert RTReferenceType to scoped enum
Change-Id: I8320f6f42d5579fbd09450ddca61c4c066de98e4
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/legacyprovider.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/unoidl/source/legacyprovider.cxx b/unoidl/source/legacyprovider.cxx
index 135061721694..d3f34bb0918e 100644
--- a/unoidl/source/legacyprovider.cxx
+++ b/unoidl/source/legacyprovider.cxx
@@ -512,7 +512,7 @@ rtl::Reference< Entity > readEntity(
translateAnnotations(
reader.getReferenceDocumentation(j)));
switch (reader.getReferenceSort(j)) {
- case RT_REF_EXPORTS:
+ case RTReferenceType::EXPORTS:
if (!(reader.getReferenceFlags(j) & RTFieldAccess::OPTIONAL))
{
mandServs.push_back(base);
@@ -520,7 +520,7 @@ rtl::Reference< Entity > readEntity(
optServs.push_back(base);
}
break;
- case RT_REF_SUPPORTS:
+ case RTReferenceType::SUPPORTS:
if (!(reader.getReferenceFlags(j) & RTFieldAccess::OPTIONAL))
{
mandIfcs.push_back(base);
@@ -532,7 +532,7 @@ rtl::Reference< Entity > readEntity(
throw FileFormatException(
key.getRegistryName(),
("legacy format: unexpected mode "
- + OUString::number(reader.getReferenceSort(j))
+ + OUString::number(static_cast<int>(reader.getReferenceSort(j)))
+ " of reference " + reader.getReferenceTypeName(j)
+ " in service with key " + sub.getName()));
}