Mercurial > hg > svgui
diff layer/Layer.h @ 502:73a58a4dfebd
* Add vestigial Activity Log
author | Chris Cannam |
---|---|
date | Tue, 24 Feb 2009 14:01:42 +0000 |
parents | 2ed4e572d0d4 |
children | 1c6439ef99d6 |
line wrap: on
line diff
--- a/layer/Layer.h Tue Feb 24 12:17:18 2009 +0000 +++ b/layer/Layer.h Tue Feb 24 14:01:42 2009 +0000 @@ -55,7 +55,7 @@ virtual ~Layer(); virtual const Model *getModel() const = 0; - virtual Model *getModel() { + Model *getModel() { return const_cast<Model *>(const_cast<const Layer *>(this)->getModel()); }