From b8f0eddaa14cb3c3a5769c3edaf4edb60d8bbe92 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Sat, 16 Jul 2016 07:04:23 +0100 Subject: [PATCH] ReceivedBufferString in CalDAVReceive not required. --- source/objects/CalDAV/CalDAV.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; -- 2.39.5