mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
make scoped_state noncopyable
This commit is contained in:
parent
37f6aadcbb
commit
3a7c8ff3fb
@ -81,7 +81,7 @@ public:
|
||||
pixel_position const& position() const { return current_position; }
|
||||
};
|
||||
|
||||
class scoped_state
|
||||
class scoped_state : noncopyable
|
||||
{
|
||||
public:
|
||||
scoped_state(vertex_cache &pp) : pp_(pp), state_(pp.save_state()), restored_(false) {}
|
||||
@ -90,7 +90,7 @@ public:
|
||||
state const& get_state() const { return state_; }
|
||||
private:
|
||||
vertex_cache &pp_;
|
||||
class state state_;
|
||||
state state_;
|
||||
bool restored_;
|
||||
};
|
||||
|
||||
@ -224,8 +224,5 @@ vertex_cache::vertex_cache(T & path)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user