aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-03-22 10:31:34 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:09:57 -0300
commite8f37f7ee2b7ea6a7d25732dbd335687b5493ec3 (patch)
tree19f7164efa01f91628ac9966b082c596efb46afa /abstractmetalang.cpp
parent60c0865c6af16c91244123fe6f2c328f5fc912a4 (diff)
Meta type minimal signature should place reference symbol after pointer symbols.
The minimalSignature method was placing '&' before '*'. For example, the signature "foo(Bar*&)" was becoming "foo(Bar&*)". An unit test was added to verify AbstractMetaType::minimalSignature(). Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Anderson Lizardo <anderson.lizardo@openbossa.org>
Diffstat (limited to 'abstractmetalang.cpp')
-rw-r--r--abstractmetalang.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/abstractmetalang.cpp b/abstractmetalang.cpp
index 73f61763..b9a15d42 100644
--- a/abstractmetalang.cpp
+++ b/abstractmetalang.cpp
@@ -2119,10 +2119,10 @@ QString AbstractMetaType::minimalSignature() const
minimalSignature += " >";
}
- if (isReference())
- minimalSignature += "&";
for (int j = 0; j < indirections(); ++j)
minimalSignature += "*";
+ if (isReference())
+ minimalSignature += "&";
return minimalSignature;
}