From: Steve Brokenshire Date: Sat, 16 Jul 2016 06:04:23 +0000 (+0100) Subject: ReceivedBufferString in CalDAVReceive not required. X-Git-Tag: release-0.02~100 X-Git-Url: http://Server1/repobrowser/?a=commitdiff_plain;h=b8f0eddaa14cb3c3a5769c3edaf4edb60d8bbe92;p=xestiacalendar%2F.git ReceivedBufferString in CalDAVReceive not required. --- diff --git a/source/objects/CalDAV/CalDAV.cpp b/source/objects/CalDAV/CalDAV.cpp index 4e476df..dfddd87 100644 --- a/source/objects/CalDAV/CalDAV.cpp +++ b/source/objects/CalDAV/CalDAV.cpp @@ -23,10 +23,7 @@ using namespace std; size_t CalDAVReceive(char *ReceivedBuffer, size_t Size, size_t NewMemoryBytes, string *StringPointer) { - string ReceivedBufferString = ""; - ReceivedBufferString.append(ReceivedBuffer, NewMemoryBytes); - - StringPointer->append(ReceivedBufferString); + StringPointer->append(ReceivedBuffer, NewMemoryBytes); return Size * NewMemoryBytes;