]> git.sesse.net Git - kdenlive/blobdiff - src/jogshuttle.h
Const'ref
[kdenlive] / src / jogshuttle.h
index 34673fa65348c697c1b622ae749606273a1c8f64..6b70be86d5c086f025630281a29704541e66041e 100644 (file)
@@ -34,13 +34,13 @@ class ShuttleThread : public QThread
 
 public:
     virtual void run();
-    void init(QObject *parent, QString device);
+    void init(QObject *parent, const QString &device);
     QObject *m_parent;
     int shuttlevalue;
     int shuttlecounter;
     unsigned short jogvalue;
     bool isWorking();
-    bool stop_me;
+    volatile bool stop_me;
     QString m_device;
 
 private:
@@ -55,10 +55,10 @@ private:
 class JogShuttle: public QObject
 {
 Q_OBJECT public:
-    explicit JogShuttle(QString device, QObject * parent = 0);
+    explicit JogShuttle(const QString &device, QObject * parent = 0);
     ~JogShuttle();
     void stopDevice();
-    void initDevice(QString device);
+    void initDevice(const QString &device);
 
 protected:
     virtual void customEvent(QEvent * e);