projects
/
harmattan
/
cameraplus
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9daf650
)
Use a QPointer for the m_mode member.
author
Mohammed Sameer
<msameer@foolab.org>
Sat, 6 Apr 2013 18:02:26 +0000
(21:02 +0300)
committer
Mohammed Sameer
<msameer@foolab.org>
Fri, 2 Aug 2013 21:05:59 +0000
(
00:05
+0300)
m_mode is owned by the device and it will be destroyed if device
gets destroyed.
declarative/mode.h
patch
|
blob
|
history
diff --git
a/declarative/mode.h
b/declarative/mode.h
index
f92869b
..
f8fb30b
100644
(file)
--- a/
declarative/mode.h
+++ b/
declarative/mode.h
@@
-24,6
+24,7
@@
#define MODE_H
#include <QObject>
#define MODE_H
#include <QObject>
+#include <QPointer>
class Camera;
class QImage;
class Camera;
class QImage;
@@
-68,7
+69,7
@@
protected:
virtual void changeMode() = 0;
Camera *m_cam;
virtual void changeMode() = 0;
Camera *m_cam;
- Q
tCamMode *
m_mode;
+ Q
Pointer<QtCamMode>
m_mode;
private:
unsigned long long m_seq;
private:
unsigned long long m_seq;