summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-24 15:35:50 +0000
committerDavid Robillard <d@drobilla.net>2009-10-24 15:35:50 +0000
commit1716d75f9f6341afd4ec4a23f96351ee49da4340 (patch)
treee47992a296db6dbc137d71106b75c70058b3b14c /libs
parent0ac99a4236bf3b499870e196c5cfc040f37aac22 (diff)
Apply accurate copyright header.
Shrink. git-svn-id: svn://localhost/ardour2/branches/3.0@5905 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/evoral/evoral/EventList.hpp22
1 files changed, 8 insertions, 14 deletions
diff --git a/libs/evoral/evoral/EventList.hpp b/libs/evoral/evoral/EventList.hpp
index 390d90dd5b..a024e73d9b 100644
--- a/libs/evoral/evoral/EventList.hpp
+++ b/libs/evoral/evoral/EventList.hpp
@@ -1,5 +1,5 @@
/* This file is part of Evoral.
- * Copyright (C) 2008 Dave Robillard <http://drobilla.net>
+ * Copyright (C) 2009 Paul Davis
*
* Evoral is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
@@ -33,22 +33,16 @@ namespace Evoral {
template<typename Time>
class EventList : public std::list<Evoral::Event<Time> *>, public Evoral::EventSink<Time> {
public:
- EventList() {}
-
- uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf);
-};
+ EventList() {}
-template<typename Time>
-inline uint32_t
-EventList<Time>::write(Time time, EventType type, uint32_t size, const uint8_t* buf)
-{
- Evoral::Event<Time>* e = new Evoral::Event<Time> (type, time, size, const_cast<uint8_t*> (buf), true); // event makes copy of buffer
- push_back (e);
- return size;
-}
+ uint32_t write(Time time, EventType type, uint32_t size, const uint8_t* buf) {
+ push_back(new Evoral::Event<Time>(
+ type, time, size, const_cast<uint8_t*>(buf), true)); // Event copies buffer
+ return size;
+ }
+};
} // namespace Evoral
#endif // EVORAL_EVENT_LIST_HPP
-