Pass the current settings down to the parsers so they can behave accordingly (i.e...
[qwerkisync] / EventParsers / VMGEntities / VEnvelope.cpp
index 54b8f41..aa8c10c 100644 (file)
@@ -27,8 +27,8 @@
 
 using namespace EventParsers::VMGEntities;
 
-VEnvelope::VEnvelope(const SMSEntity* parent) :
-       SMSEntity(parent)
+VEnvelope::VEnvelope(const Settings &settings, const SMSEntity* parent) :
+       SMSEntity(settings, parent)
 {
 }
 
@@ -75,7 +75,7 @@ bool VEnvelope::Read(const QString &initialLine, QTextStream &stream, EventTypes
        {
                if(lineData.startsWith("BEGIN:"))
                {
-                       iReader* reader = Factory::Instantiate(lineData, this);
+                       iReader* reader = Factory::Instantiate(CurrentSettings(), lineData, this);
                        bool valid(NULL != reader && reader->Read(lineData, stream, event));
                        delete reader;