default smart pointer type switched to intrusive_ptr

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@337 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-05-11 21:34:53 +00:00
parent 3b6743b110
commit 33fd2b5e18
103 changed files with 368 additions and 256 deletions
+3 -3
View File
@@ -44,7 +44,7 @@ enum WhichHandle
};
/// A control point (corner) of a SymbolPart (polygon/bezier-gon)
class ControlPoint {
class ControlPoint : public IntrusivePtrBase<ControlPoint> {
public:
Vector2D pos; ///< position of the control point itself
Vector2D delta_before; ///< delta to bezier control point, for curve before point
@@ -121,7 +121,7 @@ inline size_t mod(int a, size_t size) {
}
/// A single part (polygon/bezier-gon) in a Symbol
class SymbolPart {
class SymbolPart : public IntrusivePtrBase<SymbolPart> {
public:
/// The points of this polygon
vector<ControlPointP> points;
@@ -158,7 +158,7 @@ class SymbolPart {
// ----------------------------------------------------------------------------- : Symbol
/// An editable symbol, consists of any number of SymbolParts
class Symbol {
class Symbol : public IntrusivePtrBase<Symbol> {
public:
/// The parts of this symbol
vector<SymbolPartP> parts;