fix: make transaction getters const
authorKonrad Rosenbaum <konrad@silmor.de>
Sun, 1 Jan 2012 20:51:13 +0000 (21:51 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Sun, 1 Jan 2012 20:51:13 +0000 (21:51 +0100)
woc/qt/qtctrans.cpp

index 2bb3cc1..c978e56 100644 (file)
@@ -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";
        }
 }