X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvalue.h;h=ceb8fca882e56208f1ec73a69105390607078eb2;hb=241290ec883794d1579593182b337277f6ef5182;hp=53dc12aa2e5b6ed124fecb41708b94078f75b569;hpb=c74ce4738eff208de3bef4b63929b6975a896e93;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/value.h b/synfig-core/trunk/src/synfig/value.h index 53dc12a..ceb8fca 100644 --- a/synfig-core/trunk/src/synfig/value.h +++ b/synfig-core/trunk/src/synfig/value.h @@ -204,6 +204,11 @@ public: { const Type testtype(get_type(x)); + return same_type_as(testtype); + } + + bool same_type_as(const Type testtype)const + { if(testtype==type)return true; if( (type==TYPE_REAL || type==TYPE_TIME) && (testtype==TYPE_REAL || testtype==TYPE_TIME) ) @@ -289,9 +294,9 @@ public: static const Type get_type(const etl::loose_handle&) { return TYPE_CANVAS; } static const Type get_type(const list_type&) { return TYPE_LIST; } - template static const Type get_type(const std::vector &x) + template static const Type get_type(const std::vector &/*x*/) { return TYPE_LIST; } - template static const Type get_type(const std::list &x) + template static const Type get_type(const std::list &/*x*/) { return TYPE_LIST; } // ========================================================================