summaryrefslogtreecommitdiff
path: root/cpp/src/slice2docbook/GenUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/slice2docbook/GenUtil.cpp')
-rw-r--r--cpp/src/slice2docbook/GenUtil.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/src/slice2docbook/GenUtil.cpp b/cpp/src/slice2docbook/GenUtil.cpp
index 64be85a894f..81eede553e3 100644
--- a/cpp/src/slice2docbook/GenUtil.cpp
+++ b/cpp/src/slice2docbook/GenUtil.cpp
@@ -37,23 +37,23 @@ 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)
- result = "<classname>" + cl -> scoped().substr(2) + "</classname>";
+ result = "<classname>" + cl->scoped().substr(2) + "</classname>";
ContainedPtr contained = ContainedPtr::dynamicCast(type);
if (contained)
{
if (result.empty())
- result = "<type>" + contained -> scoped().substr(2) + "</type>";
+ 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())
@@ -65,7 +65,7 @@ Slice::typeToString(const TypePtr& type)
string
Slice::addLink(const string& s, const ContainerPtr& container)
{
- TypeList types = container -> lookupType(s, false);
+ TypeList types = container->lookupType(s, false);
if (!types.empty())
{
string result;
@@ -77,15 +77,15 @@ 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;
}
- ContainedList contList = container -> lookupContained(s, false);
+ 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>";