From 69bf3965b74a4d0435179f0e1095339384e81b2c Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sat, 3 Oct 2009 13:53:00 +0200 Subject: compile fixes for sun compiler 5.10: class Layer conflicts with class FbTk/Layer .. so just a little renaming --- src/FbTk/Layer.hh | 14 +++++++------- src/FbTk/XLayer.hh | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/FbTk/Layer.hh b/src/FbTk/Layer.hh index aabbe08..5836c9c 100644 --- a/src/FbTk/Layer.hh +++ b/src/FbTk/Layer.hh @@ -29,12 +29,12 @@ namespace FbTk { template > -class Layer { +class LayerBase { public: typedef Container ListType; typedef typename Container::iterator iterator; typedef typename Container::reverse_iterator reverse_iterator; - virtual ~Layer() { } + virtual ~LayerBase() { } /// insert in top by default virtual iterator insert(ItemType &item, unsigned int pos=0); /// remove item from list @@ -56,7 +56,7 @@ private: }; template -typename Container::iterator Layer::insert(ItemType &item, unsigned int position) { +typename Container::iterator LayerBase::insert(ItemType &item, unsigned int position) { // make sure we don't alreay have it in the list if (std::find(itemList().begin(), itemList().end(), &item) != itemList().end()) return m_list.end(); @@ -76,14 +76,14 @@ typename Container::iterator Layer::insert(ItemType &item, template -void Layer::remove(ItemType &item) { +void LayerBase::remove(ItemType &item) { iterator it = std::find(itemList().begin(), itemList().end(), &item); if (it != itemList().end()) m_list.erase(it); } template -void Layer::raise(ItemType &item) { +void LayerBase::raise(ItemType &item) { if (&item == itemList().front()) // already at the bottom return; remove(item); @@ -92,7 +92,7 @@ void Layer::raise(ItemType &item) { } template -void Layer::lower(ItemType &item) { +void LayerBase::lower(ItemType &item) { if (&item == itemList().back()) // already at the bottom return; remove(item); @@ -101,7 +101,7 @@ void Layer::lower(ItemType &item) { } template -void Layer::restack() { +void LayerBase::restack() { } diff --git a/src/FbTk/XLayer.hh b/src/FbTk/XLayer.hh index 6018b8a..ba5406b 100644 --- a/src/FbTk/XLayer.hh +++ b/src/FbTk/XLayer.hh @@ -31,7 +31,7 @@ namespace FbTk { class MultLayers; class XLayerItem; -class XLayer : public FbTk::Layer > { +class XLayer : public FbTk::LayerBase > { public: XLayer(MultLayers &manager, int layernum); -- cgit v0.11.2