diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/hugo/object.h | 2 | ||||
-rw-r--r-- | engines/kyra/screen.cpp | 2 | ||||
-rw-r--r-- | engines/made/resource.h | 2 | ||||
-rw-r--r-- | engines/parallaction/exec.h | 2 | ||||
-rw-r--r-- | engines/parallaction/parallaction.cpp | 2 | ||||
-rw-r--r-- | engines/parallaction/parallaction.h | 2 | ||||
-rw-r--r-- | engines/sci/engine/savegame.cpp | 22 | ||||
-rw-r--r-- | engines/sci/engine/segment.h | 2 | ||||
-rw-r--r-- | engines/scumm/he/wiz_he.cpp | 10 | ||||
-rw-r--r-- | engines/scumm/player_nes.cpp | 2 | ||||
-rw-r--r-- | engines/touche/saveload.cpp | 26 | ||||
-rw-r--r-- | engines/tucker/saveload.cpp | 2 | ||||
-rw-r--r-- | engines/tucker/tucker.h | 2 |
13 files changed, 39 insertions, 39 deletions
diff --git a/engines/hugo/object.h b/engines/hugo/object.h index c0933729eb..84c20db041 100644 --- a/engines/hugo/object.h +++ b/engines/hugo/object.h @@ -117,7 +117,7 @@ protected: void restoreSeq(object_t *obj); inline bool checkBoundary(int16 x, int16 y); - template <typename T> + template<typename T> inline int sign(T a) { if ( a < 0) return -1; else return 1; } }; diff --git a/engines/kyra/screen.cpp b/engines/kyra/screen.cpp index 19314a5699..2b701e3b81 100644 --- a/engines/kyra/screen.cpp +++ b/engines/kyra/screen.cpp @@ -2181,7 +2181,7 @@ void Screen::decodeFrameDelta(uint8 *dst, const uint8 *src, bool noXor) { wrapped_decodeFrameDelta<false>(dst, src); } -template <bool noXor> +template<bool noXor> void Screen::wrapped_decodeFrameDelta(uint8 *dst, const uint8 *src) { while (1) { uint8 code = *src++; diff --git a/engines/made/resource.h b/engines/made/resource.h index 9e0a729c58..537801bdc8 100644 --- a/engines/made/resource.h +++ b/engines/made/resource.h @@ -219,7 +219,7 @@ protected: void loadIndex(ResourceSlots *slots); - template <class T> + template<class T> T *createResource(uint32 resType, int index) { ResourceSlot *slot = getResourceSlot(resType, index); if (!slot) diff --git a/engines/parallaction/exec.h b/engines/parallaction/exec.h index 4ca3947514..b7b8a571f4 100644 --- a/engines/parallaction/exec.h +++ b/engines/parallaction/exec.h @@ -71,7 +71,7 @@ typedef Common::Array<const ProgramOpcode*> ProgramOpcodeSet; #define DECLARE_UNQUALIFIED_INSTRUCTION_OPCODE(op) void instOp_##op(ProgramContext &) -template <class OpcodeSet> +template<class OpcodeSet> class Exec { protected: OpcodeSet _opcodes; diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index 2fffc9071c..3b1b7d54a0 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -795,7 +795,7 @@ bool Location::keepAnimation_br(AnimationPtr a) { return keepZone_br(a); } -template <class T> +template<class T> void Location::freeList(Common::List<T> &list, bool removeAll, Common::MemFunc1<bool, T, Location> filter) { typedef typename Common::List<T>::iterator iterator; iterator it = list.begin(); diff --git a/engines/parallaction/parallaction.h b/engines/parallaction/parallaction.h index 5554eff3c5..6c3ff11d15 100644 --- a/engines/parallaction/parallaction.h +++ b/engines/parallaction/parallaction.h @@ -178,7 +178,7 @@ protected: bool keepAnimation_ns(AnimationPtr a); bool keepAnimation_br(AnimationPtr a); - template <class T> + template<class T> void freeList(Common::List<T> &list, bool removeAll, Common::MemFunc1<bool, T, Location> filter); public: diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index f1c7133d01..404bea799d 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -66,7 +66,7 @@ void syncWithSerializer(Common::Serializer &s, T &obj) { } // By default, sync using syncWithSerializer, which in turn can easily be overloaded. -template <typename T> +template<typename T> struct DefaultSyncer : Common::BinaryFunction<Common::Serializer, T, void> { void operator()(Common::Serializer &s, T &obj) const { //obj.saveLoadWithSerializer(s); @@ -87,7 +87,7 @@ struct DefaultSyncer : Common::BinaryFunction<Common::Serializer, T, void> { * * TODO: Add something like this for lists, queues.... */ -template <typename T, class Syncer = DefaultSyncer<T> > +template<typename T, class Syncer = DefaultSyncer<T> > struct ArraySyncer : Common::BinaryFunction<Common::Serializer, T, void> { void operator()(Common::Serializer &s, Common::Array<T> &arr) const { uint len = arr.size(); @@ -113,13 +113,13 @@ void syncArray(Common::Serializer &s, Common::Array<T> &arr) { } -template <> +template<> void syncWithSerializer(Common::Serializer &s, reg_t &obj) { s.syncAsUint16LE(obj.segment); s.syncAsUint16LE(obj.offset); } -template <> +template<> void syncWithSerializer(Common::Serializer &s, synonym_t &obj) { s.syncAsUint16LE(obj.replaceant); s.syncAsUint16LE(obj.replacement); @@ -247,7 +247,7 @@ void SegManager::saveLoadWithSerializer(Common::Serializer &s) { } -template <> +template<> void syncWithSerializer(Common::Serializer &s, Class &obj) { s.syncAsSint32LE(obj.script); syncWithSerializer(s, obj.reg); @@ -326,14 +326,14 @@ void Object::saveLoadWithSerializer(Common::Serializer &s) { syncArray<reg_t>(s, _variables); } -template <> +template<> void syncWithSerializer(Common::Serializer &s, SegmentObjTable<Clone>::Entry &obj) { s.syncAsSint32LE(obj.next_free); syncWithSerializer<Object>(s, obj); } -template <> +template<> void syncWithSerializer(Common::Serializer &s, SegmentObjTable<List>::Entry &obj) { s.syncAsSint32LE(obj.next_free); @@ -341,7 +341,7 @@ void syncWithSerializer(Common::Serializer &s, SegmentObjTable<List>::Entry &obj syncWithSerializer(s, obj.last); } -template <> +template<> void syncWithSerializer(Common::Serializer &s, SegmentObjTable<Node>::Entry &obj) { s.syncAsSint32LE(obj.next_free); @@ -352,7 +352,7 @@ void syncWithSerializer(Common::Serializer &s, SegmentObjTable<Node>::Entry &obj } #ifdef ENABLE_SCI32 -template <> +template<> void syncWithSerializer(Common::Serializer &s, SegmentObjTable<SciArray<reg_t> >::Entry &obj) { s.syncAsSint32LE(obj.next_free); @@ -388,7 +388,7 @@ void syncWithSerializer(Common::Serializer &s, SegmentObjTable<SciArray<reg_t> > } } -template <> +template<> void syncWithSerializer(Common::Serializer &s, SegmentObjTable<SciString>::Entry &obj) { s.syncAsSint32LE(obj.next_free); @@ -416,7 +416,7 @@ void syncWithSerializer(Common::Serializer &s, SegmentObjTable<SciString>::Entry } #endif -template <typename T> +template<typename T> void sync_Table(Common::Serializer &s, T &obj) { s.syncAsSint32LE(obj.first_free); s.syncAsSint32LE(obj.entries_used); diff --git a/engines/sci/engine/segment.h b/engines/sci/engine/segment.h index 009a2558ce..54cf7b98af 100644 --- a/engines/sci/engine/segment.h +++ b/engines/sci/engine/segment.h @@ -370,7 +370,7 @@ public: #ifdef ENABLE_SCI32 -template <typename T> +template<typename T> class SciArray { public: SciArray() : _type(-1), _data(NULL), _size(0), _actualSize(0) { } diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp index f67922c81c..47b4b8ad33 100644 --- a/engines/scumm/he/wiz_he.cpp +++ b/engines/scumm/he/wiz_he.cpp @@ -687,7 +687,7 @@ void Wiz::copyRawWizImage(uint8 *dst, const uint8 *src, int dstPitch, int dstTyp } #ifdef USE_RGB_COLOR -template <int type> +template<int type> void Wiz::write16BitColor(uint8 *dstPtr, const uint8 *dataPtr, int dstType, const uint8 *xmapPtr) { uint16 col = READ_LE_UINT16(dataPtr); if (type == kWizXMap) { @@ -701,7 +701,7 @@ void Wiz::write16BitColor(uint8 *dstPtr, const uint8 *dataPtr, int dstType, cons } } -template <int type> +template<int type> void Wiz::decompress16BitWizImage(uint8 *dst, int dstPitch, int dstType, const uint8 *src, const Common::Rect &srcRect, int flags, const uint8 *xmapPtr) { const uint8 *dataPtr, *dataPtrNext; uint8 code; @@ -804,7 +804,7 @@ void Wiz::decompress16BitWizImage(uint8 *dst, int dstPitch, int dstType, const u } #endif -template <int type> +template<int type> void Wiz::write8BitColor(uint8 *dstPtr, const uint8 *dataPtr, int dstType, const uint8 *palPtr, const uint8 *xmapPtr, uint8 bitDepth) { if (bitDepth == 2) { if (type == kWizXMap) { @@ -833,7 +833,7 @@ void Wiz::write8BitColor(uint8 *dstPtr, const uint8 *dataPtr, int dstType, const } } -template <int type> +template<int type> void Wiz::decompressWizImage(uint8 *dst, int dstPitch, int dstType, const uint8 *src, const Common::Rect &srcRect, int flags, const uint8 *palPtr, const uint8 *xmapPtr, uint8 bitDepth) { const uint8 *dataPtr, *dataPtrNext; uint8 code, *dstPtr, *dstPtrNext; @@ -942,7 +942,7 @@ template void Wiz::decompressWizImage<kWizXMap>(uint8 *dst, int dstPitch, int ds template void Wiz::decompressWizImage<kWizRMap>(uint8 *dst, int dstPitch, int dstType, const uint8 *src, const Common::Rect &srcRect, int flags, const uint8 *palPtr, const uint8 *xmapPtr, uint8 bitDepth); template void Wiz::decompressWizImage<kWizCopy>(uint8 *dst, int dstPitch, int dstType, const uint8 *src, const Common::Rect &srcRect, int flags, const uint8 *palPtr, const uint8 *xmapPtr, uint8 bitDepth); -template <int type> +template<int type> void Wiz::decompressRawWizImage(uint8 *dst, int dstPitch, int dstType, const uint8 *src, int srcPitch, int w, int h, int transColor, const uint8 *palPtr, uint8 bitDepth) { if (type == kWizRMap) { assert(palPtr != 0); diff --git a/engines/scumm/player_nes.cpp b/engines/scumm/player_nes.cpp index 3f8bcef8b7..a6ffc9ed86 100644 --- a/engines/scumm/player_nes.cpp +++ b/engines/scumm/player_nes.cpp @@ -507,7 +507,7 @@ void APU::Reset () { Frame.Cycles = 1; } -template <class T> +template<class T> int step(T &obj, int sampcycles, uint frame_Cycles, int frame_Num) { int samppos = 0; while (sampcycles) { diff --git a/engines/touche/saveload.cpp b/engines/touche/saveload.cpp index 7732c6deb9..a054299ecd 100644 --- a/engines/touche/saveload.cpp +++ b/engines/touche/saveload.cpp @@ -60,7 +60,7 @@ static void saveOrLoadPtr(Common::ReadStream &stream, int16 *&p, int16 *base) { p = base + offset; } -template <class S> +template<class S> static void saveOrLoad(S &s, Common::Rect &r) { saveOrLoad(s, r.left); saveOrLoad(s, r.top); @@ -68,13 +68,13 @@ static void saveOrLoad(S &s, Common::Rect &r) { saveOrLoad(s, r.bottom); } -template <class S> +template<class S> static void saveOrLoad(S &s, SequenceEntry &seq) { saveOrLoad(s, seq.sprNum); saveOrLoad(s, seq.seqNum); } -template <class S> +template<class S> static void saveOrLoad(S &s, KeyChar &key) { saveOrLoad(s, key.num); saveOrLoad(s, key.flags); @@ -134,14 +134,14 @@ static void saveOrLoad(S &s, KeyChar &key) { } } -template <class S> +template<class S> static void saveOrLoad(S &s, TalkEntry &entry) { saveOrLoad(s, entry.otherKeyChar); saveOrLoad(s, entry.talkingKeyChar); saveOrLoad(s, entry.num); } -template <class S> +template<class S> static void saveOrLoad(S &s, ProgramHitBoxData &data) { saveOrLoad(s, data.item); saveOrLoad(s, data.talk); @@ -156,14 +156,14 @@ static void saveOrLoad(S &s, ProgramHitBoxData &data) { } } -template <class S> +template<class S> static void saveOrLoad(S &s, Area &area) { saveOrLoad(s, area.r); saveOrLoad(s, area.srcX); saveOrLoad(s, area.srcY); } -template <class S> +template<class S> static void saveOrLoad(S &s, ProgramBackgroundData &data) { saveOrLoad(s, data.area); saveOrLoad(s, data.type); @@ -172,7 +172,7 @@ static void saveOrLoad(S &s, ProgramBackgroundData &data) { saveOrLoad(s, data.scaleDiv); } -template <class S> +template<class S> static void saveOrLoad(S &s, ProgramAreaData &data) { saveOrLoad(s, data.area); saveOrLoad(s, data.id); @@ -181,7 +181,7 @@ static void saveOrLoad(S &s, ProgramAreaData &data) { saveOrLoad(s, data.animNext); } -template <class S> +template<class S> static void saveOrLoad(S &s, ProgramWalkData &data) { saveOrLoad(s, data.point1); saveOrLoad(s, data.point2); @@ -190,7 +190,7 @@ static void saveOrLoad(S &s, ProgramWalkData &data) { saveOrLoad(s, data.area2); } -template <class S> +template<class S> static void saveOrLoad(S &s, ProgramPointData &data) { saveOrLoad(s, data.x); saveOrLoad(s, data.y); @@ -198,7 +198,7 @@ static void saveOrLoad(S &s, ProgramPointData &data) { saveOrLoad(s, data.order); } -template <class A> +template<class A> static void saveOrLoadCommonArray(Common::WriteStream &stream, A &array) { uint count = array.size(); assert(count < 0xFFFF); @@ -208,7 +208,7 @@ static void saveOrLoadCommonArray(Common::WriteStream &stream, A &array) { } } -template <class A> +template<class A> static void saveOrLoadCommonArray(Common::ReadStream &stream, A &array) { uint count = stream.readUint16LE(); if (count == array.size()) { @@ -218,7 +218,7 @@ static void saveOrLoadCommonArray(Common::ReadStream &stream, A &array) { } } -template <class S, class A> +template<class S, class A> static void saveOrLoadStaticArray(S &s, A &array, uint count) { for (uint i = 0; i < count; ++i) { saveOrLoad(s, array[i]); diff --git a/engines/tucker/saveload.cpp b/engines/tucker/saveload.cpp index 5bc51acf84..5133bc15e8 100644 --- a/engines/tucker/saveload.cpp +++ b/engines/tucker/saveload.cpp @@ -49,7 +49,7 @@ static void saveOrLoadInt(Common::ReadStream &stream, int &i) { i = stream.readSint32LE(); } -template <class S> +template<class S> void TuckerEngine::saveOrLoadGameStateData(S &s) { for (int i = 0; i < kFlagsTableSize; ++i) { saveOrLoadInt(s, _flagsTable[i]); diff --git a/engines/tucker/tucker.h b/engines/tucker/tucker.h index 3daf75d44a..c9e4d986bb 100644 --- a/engines/tucker/tucker.h +++ b/engines/tucker/tucker.h @@ -563,7 +563,7 @@ protected: void updateSprite_locationNum81_1(int i); void updateSprite_locationNum82(int i); - template <class S> void saveOrLoadGameStateData(S &s); + template<class S> void saveOrLoadGameStateData(S &s); virtual Common::Error loadGameState(int num); virtual Common::Error saveGameState(int num, const Common::String &description); virtual bool canLoadGameStateCurrently(); |