summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/BufferRef.hpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/server/BufferRef.hpp b/src/server/BufferRef.hpp
index 12a62930..669af033 100644
--- a/src/server/BufferRef.hpp
+++ b/src/server/BufferRef.hpp
@@ -14,8 +14,8 @@
along with Ingen. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef INGEN_ENGINE_BUFFERREF_HPP
-#define INGEN_ENGINE_BUFFERREF_HPP
+#ifndef INGEN_ENGINE_BUFFER_REF_HPP
+#define INGEN_ENGINE_BUFFER_REF_HPP
#include <boost/intrusive_ptr.hpp>
@@ -26,14 +26,10 @@ class Buffer;
typedef boost::intrusive_ptr<Buffer> BufferRef;
+inline void intrusive_ptr_add_ref(Buffer* b) { b->ref(); }
+inline void intrusive_ptr_release(Buffer* b) { b->deref(); }
+
} // namespace Server
} // namespace Ingen
-namespace boost {
-
-inline void intrusive_ptr_add_ref(Ingen::Server::Buffer* b) { b->ref(); }
-inline void intrusive_ptr_release(Ingen::Server::Buffer* b) { b->deref(); }
-
-}
-
-#endif // INGEN_ENGINE_BUFFERREF_HPP
+#endif // INGEN_ENGINE_BUFFER_REF_HPP