X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Ffpp-game%2Fgame-container.h;h=cdc99ee3e473142d75f615fe9a61de642405b9d5;hb=1b19fd140ff139b5854a1a62447faf31b175d8f6;hp=d7cc40bf6728957eb0cca9fe3309d8c07aabe025;hpb=f0f39a7447b57c1657abe8a1b49989f0bb050e65;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/fpp-game/game-container.h b/examples/fpp-game/game-container.h index d7cc40b..cdc99ee 100644 --- a/examples/fpp-game/game-container.h +++ b/examples/fpp-game/game-container.h @@ -2,7 +2,7 @@ #define GAME_CONTAINER_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,7 +20,6 @@ #include - /** * GameContainer is a vector which owns heap-allocated objects. * Unlike vector this will call delete on the stored pointers during destruction. @@ -34,12 +33,12 @@ * * @endcode */ -template< class T > class GameContainer : public Dali::Vector< T > +template +class GameContainer : public Dali::Vector { public: - - typedef typename Dali::Vector< T >::Iterator Iterator; - typedef typename Dali::Vector< T >::ConstIterator ConstIterator; + typedef typename Dali::Vector::Iterator Iterator; + typedef typename Dali::Vector::ConstIterator ConstIterator; /** * Create a owner container. @@ -62,21 +61,20 @@ public: */ void Clear() { - ConstIterator end = Dali::Vector< T >::End(); - for( Iterator iter = Dali::Vector< T >::Begin(); iter != end; ++iter ) + ConstIterator end = Dali::Vector::End(); + for(Iterator iter = Dali::Vector::Begin(); iter != end; ++iter) { - delete (*iter); + delete(*iter); } - Dali::Vector< T >::Clear(); + Dali::Vector::Clear(); } private: - // Undefined copy constructor. - GameContainer( const GameContainer& ); + GameContainer(const GameContainer&); // Undefined assignment operator. - GameContainer& operator=( const GameContainer& ); + GameContainer& operator=(const GameContainer&); }; #endif // GAMECACHE_H