freebsd-ports/net-p2p/digitalcoin/files/patch-src__serialize.h
Philip M. Gollucci 0e8ae25c16 net-p2p/digitalcoin: cleanup
- Remove Qt build tools from runtime dependencies;
- Use qt4-linguisttools instead of qt4-linguist;
- Add LICENSE;
- Add USES=desktop-file-utils;
- Wrap lines at 80 characters;
- Regen patches.

PR:                  201025
Submitted by:        s3erios@gmail.com
2015-07-15 20:59:13 +00:00

22 lines
891 B
C++

--- src/serialize.h.orig 2013-10-13 13:51:25 UTC
+++ src/serialize.h
@@ -809,19 +809,6 @@ public:
iterator insert(iterator it, const char& x=char()) { return vch.insert(it, x); }
void insert(iterator it, size_type n, const char& x) { vch.insert(it, n, x); }
- void insert(iterator it, const_iterator first, const_iterator last)
- {
- assert(last - first >= 0);
- if (it == vch.begin() + nReadPos && (unsigned int)(last - first) <= nReadPos)
- {
- // special case for inserting at the front when there's room
- nReadPos -= (last - first);
- memcpy(&vch[nReadPos], &first[0], last - first);
- }
- else
- vch.insert(it, first, last);
- }
-
void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
{
assert(last - first >= 0);