diff options
author | Marc Laukien <marc@zeroc.com> | 2001-07-27 15:00:28 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-07-27 15:00:28 +0000 |
commit | 0d85b14b10d5296c8ad0f196dd24de8f55ab8f1b (patch) | |
tree | c1c0c990f5524ebda4ed26121c66a422d1e97e73 /cpp/src/slice2docbook/GenUtil.cpp | |
parent | started code style conversion (diff) | |
download | ice-0d85b14b10d5296c8ad0f196dd24de8f55ab8f1b.tar.bz2 ice-0d85b14b10d5296c8ad0f196dd24de8f55ab8f1b.tar.xz ice-0d85b14b10d5296c8ad0f196dd24de8f55ab8f1b.zip |
format changes, bug fix
Diffstat (limited to 'cpp/src/slice2docbook/GenUtil.cpp')
-rw-r--r-- | cpp/src/slice2docbook/GenUtil.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/cpp/src/slice2docbook/GenUtil.cpp b/cpp/src/slice2docbook/GenUtil.cpp index 1827ec2f829..52b9c90a4e2 100644 --- a/cpp/src/slice2docbook/GenUtil.cpp +++ b/cpp/src/slice2docbook/GenUtil.cpp @@ -37,13 +37,11 @@ Slice::typeToString(const TypePtr& type) BuiltinPtr builtin = BuiltinPtr::dynamicCast(type); if(builtin) - result = "<type>" + string(builtinTable[builtin -> kind()]) - + "</type>"; + result = "<type>" + string(builtinTable[builtin -> kind()]) + "</type>"; ProxyPtr proxy = ProxyPtr::dynamicCast(type); if(proxy) - result = "<classname>" + proxy -> _class() -> scoped().substr(2) + - "*</classname>"; + result = "<classname>" + proxy -> _class() -> scoped().substr(2) + "*</classname>"; ClassDeclPtr cl = ClassDeclPtr::dynamicCast(type); if(cl) @@ -55,8 +53,7 @@ Slice::typeToString(const TypePtr& type) if(result.empty()) result = "<type>" + contained -> scoped().substr(2) + "</type>"; - result = "<link linkend=" + scopedToId(contained -> scoped()) + ">" - + result + "</link>"; + result = "<link linkend=" + scopedToId(contained -> scoped()) + ">" + result + "</link>"; } if(result.empty()) @@ -80,8 +77,7 @@ Slice::addLink(const string& s, const ContainerPtr& container) ContainedPtr p = ContainedPtr::dynamicCast(types.front()); if(p) - result = "<link linkend=" + scopedToId(p -> scoped()) + ">" - + result + "</link>"; + result = "<link linkend=" + scopedToId(p -> scoped()) + ">" + result + "</link>"; return result; } @@ -89,8 +85,7 @@ Slice::addLink(const string& s, const ContainerPtr& container) ContainedList contList = container -> lookupContained(s, false); if(!contList.empty()) { - string result = "<link linkend=" + - scopedToId(contList.front() -> scoped()) + ">"; + string result = "<link linkend=" + scopedToId(contList.front() -> scoped()) + ">"; if(ModulePtr::dynamicCast(contList.front())) result += "<classname>" + s + "</classname>"; |