Miscellaneous tidying up
authorJamie Thompson <jamie@.(none)>
Thu, 25 Aug 2011 01:51:35 +0000 (02:51 +0100)
committerJamie Thompson <jamie@.(none)>
Thu, 25 Aug 2011 01:51:35 +0000 (02:51 +0100)
EventParsers/VMGEntities/SMSEntity.h
EventParsers/VMGEntities/VMessage.cpp
SyncerThread.cpp

index 30fe6a8..28925af 100644 (file)
@@ -19,6 +19,8 @@
 #ifndef EVENTPARSERS_VMGEntities_SMSENTITY_H
 #define EVENTPARSERS_VMGEntities_SMSENTITY_H
 
+class Settings;
+
 #include <cstddef>
 #include <typeinfo>
 
@@ -31,18 +33,20 @@ namespace EventParsers
                class SMSEntity
                {
                public:
-                       virtual ~SMSEntity() {};
                        SMSEntity(const Settings &settings, const SMSEntity* parent);
+                       virtual ~SMSEntity() {}
 
                protected:
                        const bool isAttachment() const;
 
-                       const SMSEntity* m_Parent;
-                       const SMSEntity* getParent() const { return m_Parent; };
+                       const SMSEntity *getParent() const { return m_Parent; }
+
+                       virtual const char *getTagName() const { return "VBODY"; }
                        const Settings &CurrentSettings() const { return m_Settings; }
 
-                       virtual const char* getTagName() const { return "VBODY"; }
+               private:
                        const Settings &m_Settings;
+                       const SMSEntity *m_Parent;
                };
        }
 }
index b798462..75ace8f 100644 (file)
@@ -21,9 +21,9 @@
 #include "EventTypes/SMS.h"
 #include "Factory.h"
 #include "Settings.h"
+#include "VBody.h"
 #include "VCard.h"
 #include "VEnvelope.h"
-#include "VBody.h"
 
 #include <QDateTime>
 #include <QTextStream>
@@ -50,7 +50,7 @@ VMessage::~VMessage()
 {
 }
 
-bool VMessage::Read(const QString & initialLine, QTextStream & stream, EventTypes::SMS & event)
+bool VMessage::Read(const QString &initialLine, QTextStream &stream, EventTypes::SMS &event)
 {
        if(getParent() != NULL)
        {
index 2a5e3b1..754123b 100644 (file)
@@ -167,7 +167,7 @@ void SyncerThread::run()
                        foreach(iHashable::Hash hash, newHashes)
                                qDebug() << hash << endl;
 
-                       // Now an optimisation: group the new hases by the files they come
+                       // Now an optimisation: group the new hashes by the files they come
                        // from. This enables each file to only be parsed once and return
                        // all the required events from it.
                        QHash<QString, QList<iHashable::Hash> > newHashesByPath;