13
0

use LIBEVORAL_TEMPLATE_API

Also clean up unnecessary comments - git blame provides complete per-line history, no need to leave comments behind
This commit is contained in:
Paul Davis 2014-01-12 20:00:26 -05:00
parent a94dadc759
commit 491bc4e865

View File

@ -35,7 +35,7 @@ namespace Evoral {
* from() converts a time _origin_b + b into an offset from _origin_b in units of A.
*/
template<typename A, typename B>
class LIBEVORAL_API TimeConverter {
class LIBEVORAL_TEMPLATE_API TimeConverter {
public:
TimeConverter () : _origin_b (0) {}
TimeConverter (B ob) : _origin_b (ob) {}
@ -65,16 +65,12 @@ protected:
* going on.
*/
template<typename A, typename B>
class /*LIBEVORAL_API*/ IdentityConverter : public TimeConverter<A,B> {
class LIBEVORAL_TEMPLATE_API IdentityConverter : public TimeConverter<A,B> {
public:
LIBEVORAL_API /* Added by JE - 27-10-2013 */IdentityConverter() {}
LIBEVORAL_API /* Added by JE - 27-10-2013 */B to(A a) const;
LIBEVORAL_API /* Added by JE - 27-10-2013 */A from(B b) const;
/* Changed by JE - 27-10-2013. Was formerly. . .
B to(A a) const { return static_cast<B>(a); }
A from(B b) const { return static_cast<A>(b); }
*/
IdentityConverter() {}
B to(A a) const;
A from(B b) const;
};