Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Fix more issues with modern compilers.
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Feb 10, 2008
1 parent 84e96ee commit 5ed5df5
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 86 deletions.
20 changes: 10 additions & 10 deletions src/ixlib_array.hpp
Expand Up @@ -231,17 +231,17 @@ namespace ixion {
: super(source)
{ source.invalidate(); }
virtual ~auto_array()
{ internal_deallocate(); }
{ this->internal_deallocate(); }

auto_array &operator=(auto_array &source) {
internal_deallocate();
this->internal_deallocate();
super::operator=(source);
source.invalidate();
return *this;
}

virtual void allocate(typename super::size_type cap) {
internal_deallocate();
this->internal_deallocate();
super::allocate(cap);
}
};
Expand Down Expand Up @@ -269,25 +269,25 @@ namespace ixion {
: super(source)
{ source.invalidate(); }
virtual ~auto_destroy_array() {
internal_destroy();
internal_deallocate();
this->internal_destroy();
this->internal_deallocate();
}

auto_destroy_array &operator=(auto_destroy_array &source) {
internal_destroy();
internal_deallocate();
this->internal_destroy();
this->internal_deallocate();
super::operator=(source);
source.invalidate();
return *this;
}

virtual void allocate(typename super::size_type cap) {
internal_destroy();
internal_deallocate();
this->internal_destroy();
this->internal_deallocate();
super::allocate(cap);
}
virtual void deallocate() {
internal_destroy();
this->internal_destroy();
super::deallocate();
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/ixlib_drawing_functions.hpp
Expand Up @@ -437,7 +437,7 @@ void ixion::drawing_functions::fillEllipse(Target &target,int x,int y,int r_x,in

template<class Target,class T>
void ixion::drawing_functions::drawPolygon(Target &target,polygon<T> const &poly) {
FOREACH_CONST(first_seg,poly,polygon<T>) {
FOREACH_CONST(first_seg,poly,typename polygon<T>) {
if ((*first_seg)->size() <= 1) continue;
if ((*first_seg)->size() == 2) {
drawLine(target,(*first_seg)->front()[0],(*first_seg)->front()[1],
Expand All @@ -446,7 +446,7 @@ void ixion::drawing_functions::drawPolygon(Target &target,polygon<T> const &poly
}

// at least a triangle
polygon_segment<T>::const_iterator
typename polygon_segment<T>::const_iterator
next = (*first_seg)->begin(),
last = (*first_seg)->end(),
previous = last-1;
Expand Down
1 change: 1 addition & 0 deletions src/ixlib_geometry.hpp
Expand Up @@ -13,6 +13,7 @@



#include <cmath>
#include <vector>
#include <ixlib_base.hpp>
#include <ixlib_exgen.hpp>
Expand Down
4 changes: 2 additions & 2 deletions src/ixlib_polygon.hpp
Expand Up @@ -40,7 +40,7 @@ namespace ixion {
}

void push_back_c(T x,T y);
void insert_c(super::iterator it,T x,T y);
void insert_c(typename super::iterator it,T x,T y);

bool isPointInside(T x,T y);

Expand All @@ -64,7 +64,7 @@ namespace ixion {
typedef std::vector<polygon_segment<T> *> super;

public:
typedef polygon_segment<T>::vertex_2d vertex_2d;
typedef typename polygon_segment<T>::vertex_2d vertex_2d;

public:
polygon() {
Expand Down

0 comments on commit 5ed5df5

Please sign in to comment.