summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2008-06-14 16:23:08 +0000
committerskidd13 <skidd13@openttd.org>2008-06-14 16:23:08 +0000
commit96fc91baf333b6fb874f53bf4cf0a744bd0303aa (patch)
treed5b906fe92067ad24f299aa231dd338520d277f1 /src/misc
parentbf9a32b4757aaf7b189889063c9a293a508494b1 (diff)
downloadopenttd-96fc91baf333b6fb874f53bf4cf0a744bd0303aa.tar.xz
(svn r13516) -Codechange: Move MemCpyT to a fitting core header
-Codechange: Split the sorting code from the sortlist to an appropriate header
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/blob.hpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/misc/blob.hpp b/src/misc/blob.hpp
index c96902997..12f7e54ff 100644
--- a/src/misc/blob.hpp
+++ b/src/misc/blob.hpp
@@ -6,16 +6,7 @@
#define BLOB_HPP
#include "../core/alloc_func.hpp"
-
-/** Type-safe version of memcpy().
- * @param d destination buffer
- * @param s source buffer
- * @param num_items number of items to be copied (!not number of bytes!) */
-template <class Titem_>
-FORCEINLINE void MemCpyT(Titem_* d, const Titem_* s, int num_items = 1)
-{
- memcpy(d, s, num_items * sizeof(Titem_));
-}
+#include "../core/mem_func.hpp"
/** Base class for simple binary blobs.
* Item is byte.