diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2001-11-09 09:51:38 +0000 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2001-11-09 09:51:38 +0000 |
commit | 8e7ff9d28e01ce957bf81ab865c51a320eb9a371 (patch) | |
tree | 1f9c26aa1957c5e40a4ce60105f9079858637a07 /registry/source/regimpl.cxx | |
parent | 859f2f0d40aa56515d93c69655826e1c9637d62a (diff) |
#94545# dump optional flag for servicemembers
Diffstat (limited to 'registry/source/regimpl.cxx')
-rw-r--r-- | registry/source/regimpl.cxx | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/registry/source/regimpl.cxx b/registry/source/regimpl.cxx index ee30c59fe18a..c3027b4c5f3b 100644 --- a/registry/source/regimpl.cxx +++ b/registry/source/regimpl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: regimpl.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: jsc $ $Date: 2001-07-23 15:43:28 $ + * last change: $Author: jsc $ $Date: 2001-11-09 10:51:38 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -391,30 +391,28 @@ static sal_Bool dumpType(RegistryTypeReader& reader, const OString& sIndent) switch (reader.getReferenceType(i)) { case RT_REF_INVALID: - fprintf(stdout, "%s type=INVALID\n", indent); + fprintf(stdout, "%s type=INVALID\n", indent); break; case RT_REF_SUPPORTS: - { - fprintf(stdout, "%s type=supported interface\n", indent); - if (reader.getReferenceAccess(i) == RT_ACCESS_OPTIONAL) - { - fprintf(stdout, "%s access=optional\n", indent); - } - } + fprintf(stdout, "%s type=supported interface\n", indent); break; case RT_REF_OBSERVES: - fprintf(stdout, "%s type=observed interface\n", indent); + fprintf(stdout, "%s type=observed interface\n", indent); break; case RT_REF_EXPORTS: - fprintf(stdout, "%s type=exported service\n", indent); + fprintf(stdout, "%s type=exported service\n", indent); break; case RT_REF_NEEDS: - fprintf(stdout, "%s type=needed service\n", indent); + fprintf(stdout, "%s type=needed service\n", indent); break; default: fprintf(stdout, "%s type=<unknown>\n", indent); break; } + if (reader.getReferenceAccess(i) == RT_ACCESS_OPTIONAL) + { + fprintf(stdout, "%s access=optional\n", indent); + } fprintf(stdout, "%s Doku: \"%s\"\n", indent, OUStringToOString(reader.getReferenceDoku(i), RTL_TEXTENCODING_UTF8).getStr()); |