Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Replace insert with push_back for ObjectName and ObjectData in CalendarObject.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 27 Jan 2016 16:53:16 +0000 (16:53 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Wed, 27 Jan 2016 16:53:16 +0000 (16:53 +0000)
source/objects/calendarobject/CalendarObject.cpp

index e094bc2..f5fc97e 100644 (file)
@@ -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);
                        
        }
        
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy