projects
/
web/konrad/pack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
6a565ed
)
fix: make transaction getters const
author
Konrad Rosenbaum
<konrad@silmor.de>
Sun, 1 Jan 2012 20:51:13 +0000 (21:51 +0100)
committer
Konrad Rosenbaum
<konrad@silmor.de>
Sun, 1 Jan 2012 20:51:13 +0000 (21:51 +0100)
woc/qt/qtctrans.cpp
patch
|
blob
|
history
diff --git
a/woc/qt/qtctrans.cpp
b/woc/qt/qtctrans.cpp
index
2bb3cc1
..
c978e56
100644
(file)
--- a/
woc/qt/qtctrans.cpp
+++ b/
woc/qt/qtctrans.cpp
@@
-246,8
+246,8
@@
void WocQtClientTransaction::genGetters(QtCTrans& ct)
{
for(int i=0;i<ct.out.size();i++){
QString tp=qttype(ct.trn,ct.out[i],WocQtOut::Out);
- ct.hcd+="\tQ_SLOT "+tp+" get"+ct.out[i]+"();\n";
- ct.scd+=tp+" "+ct.cn+"::get"+ct.out[i]+"(){return p->out_"+ct.out[i]+";}\n";
+ ct.hcd+="\tQ_SLOT "+tp+" get"+ct.out[i]+"()const;\n";
+ ct.scd+=tp+" "+ct.cn+"::get"+ct.out[i]+"()const{return p->out_"+ct.out[i]+";}\n";
}
}