Fix compilations problems in g++ 4.2.1 (Mac OS X)

This commit is contained in:
David Capello 2014-01-05 16:43:39 -03:00
parent 2a2c668e4f
commit 5bbe6c6086
2 changed files with 13 additions and 5 deletions

View File

@ -77,7 +77,7 @@ namespace app {
class ContextReader : public ContextAccess<DocumentReader> {
public:
ContextReader(const Context* context)
: ContextAccess(context) {
: ContextAccess<DocumentReader>(context) {
}
};
@ -86,11 +86,11 @@ namespace app {
class ContextWriter : public ContextAccess<DocumentWriter> {
public:
ContextWriter(const Context* context)
: ContextAccess(context) {
: ContextAccess<DocumentWriter>(context) {
}
ContextWriter(const ContextReader& reader)
: ContextAccess(reader.context(), reader.document()) {
: ContextAccess<DocumentWriter>(reader.context(), reader.document()) {
}
};

View File

@ -486,11 +486,15 @@ namespace raster {
uint8_t*,
BitPixelAccess&> {
public:
typedef ImageIteratorT<BitmapTraits,
uint8_t*,
BitPixelAccess&> Base;
ImageIterator() {
}
ImageIterator(const Image* image, const gfx::Rect& bounds, int x, int y) :
ImageIteratorT(image, bounds, x, y) {
Base(image, bounds, x, y) {
}
};
@ -499,11 +503,15 @@ namespace raster {
uint8_t const*,
const BitPixelAccess&> {
public:
typedef ImageIteratorT<BitmapTraits,
uint8_t const*,
const BitPixelAccess&> Base;
ImageConstIterator() {
}
ImageConstIterator(const Image* image, const gfx::Rect& bounds, int x, int y) :
ImageIteratorT(image, bounds, x, y) {
Base(image, bounds, x, y) {
}
};