From 3628eeecc5b4da41acf243bd792f39c53b84ba03 Mon Sep 17 00:00:00 2001 From: Steve Brokenshire Date: Wed, 27 Jan 2016 16:53:16 +0000 Subject: [PATCH] Replace insert with push_back for ObjectName and ObjectData in CalendarObject. --- source/objects/calendarobject/CalendarObject.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/objects/calendarobject/CalendarObject.cpp b/source/objects/calendarobject/CalendarObject.cpp index e094bc2..f5fc97e 100644 --- a/source/objects/calendarobject/CalendarObject.cpp +++ b/source/objects/calendarobject/CalendarObject.cpp @@ -98,8 +98,8 @@ CalendarObjectLoadResult CalendarObject::LoadString(std::string *LoadStringData) // the lists. if (ColonFound == true){ - ObjectName.insert(ObjectName.end(), PropertyName); - ObjectData.insert(ObjectData.end(), PropertyValue); + ObjectName.push_back(PropertyName); + ObjectData.push_back(PropertyValue); } ColonFound = false; @@ -157,8 +157,8 @@ CalendarObjectLoadResult CalendarObject::LoadString(std::string *LoadStringData) PropertyName.size() > 0 && PropertyValue.size() > 0){ - ObjectName.insert(ObjectName.end(), PropertyName); - ObjectData.insert(ObjectData.end(), PropertyValue); + ObjectName.push_back(PropertyName); + ObjectData.push_back(PropertyValue); } -- 2.39.5